Module: CodeBreaker::Parsable::Wrappers
Instance Method Summary collapse
Methods included from Node
#method_missing, #not_implemented_message, #parse, #parse_as_hash, #parse_as_last_child_hash, #parse_as_node_type, #parse_children
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CodeBreaker::Parsable::Node
Instance Method Details
#parse_send_node(node) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/code_breaker/parsable/wrappers.rb', line 6 def parse_send_node(node) if [:Rational, :Complex].include?(node.children[1]) return Kernel.const_get(node.children[1].to_s) end parse_children(node).flatten(1) end |