Class: Weechat::Input
Instance Method Summary collapse
- #get_unknown_commands=(val) ⇒ Object
-
#get_unknown_commands? ⇒ Boolean
(also: #get_unknown_commands)
Returns true if unknown commands are being sent as plain text to the buffer.
-
#initialize(buffer) ⇒ Input
constructor
A new instance of Input.
- #pos ⇒ Object
- #size ⇒ Object
-
#text=(val) ⇒ Object
(also: #content=)
Sets the content of the input line.
-
#to_s ⇒ Object
(also: #text, #content)
Returns the current content of the input line.
Constructor Details
#initialize(buffer) ⇒ Input
Returns a new instance of Input.
8 9 10 |
# File 'lib/weechat/input.rb', line 8 def initialize(buffer) @buffer = buffer end |
Instance Method Details
#get_unknown_commands=(val) ⇒ Object
33 34 35 |
# File 'lib/weechat/input.rb', line 33 def get_unknown_commands=(val) @buffer.set_property("input_get_unknown_commands", val) end |
#get_unknown_commands? ⇒ Boolean Also known as: get_unknown_commands
Returns true if unknown commands are being sent as plain text to the buffer.
40 41 42 |
# File 'lib/weechat/input.rb', line 40 def get_unknown_commands? @buffer.get_property("input_get_unknown_commands") end |
#pos ⇒ Object
29 30 31 |
# File 'lib/weechat/input.rb', line 29 def pos @buffer.input_buffer_pos end |
#size ⇒ Object
25 26 27 |
# File 'lib/weechat/input.rb', line 25 def size @buffer.input_buffer_size end |
#text=(val) ⇒ Object Also known as: content=
Sets the content of the input line.
20 21 22 |
# File 'lib/weechat/input.rb', line 20 def text=(val) @buffer.set_property("input", val) end |
#to_s ⇒ Object Also known as: text, content
Returns the current content of the input line.
13 14 15 |
# File 'lib/weechat/input.rb', line 13 def to_s @buffer.get_property("input") end |