Method: Red::ControlNode::Keyword#initialize
- Defined in:
- lib/red/nodes/control_nodes.rb
#initialize(*arguments_array_sexp) ⇒ Keyword
- :break, (expression)
- :next, (expression)
80 81 82 83 84 85 |
# File 'lib/red/nodes/control_nodes.rb', line 80 def initialize(*arguments_array_sexp) = arguments_array_sexp.pop arguments = arguments_array_sexp.map {|arg| arg.red!(:as_argument => true) }.join(",") keyword = self.class.to_s.split('::').last.downcase self << "$%s(%s)" % [keyword, arguments] end |