Method: Bond::Input#initialize

Defined in:
lib/bond/input.rb

#initialize(str, options = {}) ⇒ Input

Returns a new instance of Input.



14
15
16
17
18
19
20
21
# File 'lib/bond/input.rb', line 14

def initialize(str, options={}) #@private
  super(str || '')
  @matched = options[:matched]
  @line = options[:line]
  @object = options[:object] if options[:object]
  @argument = options[:argument] if options[:argument]
  @arguments = options[:arguments] if options[:arguments]
end