Class: Weechat::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/weechat/input.rb

Instance Method Summary collapse

Constructor Details

#initialize(buffer) ⇒ 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

#posObject



30
31
32
# File 'lib/weechat/input.rb', line 30

def pos
  @buffer.input_buffer_pos
end

#sizeObject 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_sObject 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