Class: Confuscript::Nodes::ConsoleInputNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/confuscript/nodes/console_input_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseNode

#find_node

Instance Attribute Details

#stringObject

Returns the value of attribute string.



4
5
6
# File 'lib/confuscript/nodes/console_input_node.rb', line 4

def string
  @string
end

Instance Method Details

#evaluate(context) ⇒ Object



6
7
8
9
10
# File 'lib/confuscript/nodes/console_input_node.rb', line 6

def evaluate(context)
  # Basically we're putsing the value
  # Not the best way to do this
  puts value.evaluate(context)
end