Class: Weechat::Input
- Inherits:
-
Object
- Object
- Weechat::Input
- Defined in:
- lib/weechat/input.rb
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 (also: #length)
-
#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
34 35 36 |
# File 'lib/weechat/input.rb', line 34 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.
41 42 43 |
# File 'lib/weechat/input.rb', line 41 def get_unknown_commands? @buffer.get_property("input_get_unknown_commands") end |
#pos ⇒ Object
30 31 32 |
# File 'lib/weechat/input.rb', line 30 def pos @buffer.input_buffer_pos end |
#size ⇒ Object Also known as: length
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 |