Class: Orchparty::AST::Node

Inherits:
Hashie::Mash
  • Object
show all
Includes:
Hashie::Extensions::DeepMerge, Hashie::Extensions::DeepMergeConcat, Hashie::Extensions::Mash::KeepOriginalKeys, Hashie::Extensions::MethodAccess
Defined in:
lib/orchparty/ast.rb

Instance Method Summary collapse

Methods included from Hashie::Extensions::DeepMergeConcat

#deep_merge_concat, #deep_merge_concat!, #deep_sort, #deep_sort!, #deep_sort_by_key_and_sort_array, #deep_transform_values, #deep_transform_values!, #transform_keys, #transform_keys!, #transform_values, #transform_values!

Instance Method Details

#get_bindingObject



14
15
16
# File 'lib/orchparty/ast.rb', line 14

def get_binding
  binding
end

#inspect(indent = 0) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/orchparty/ast.rb', line 18

def inspect(indent = 0)
  start = "\n"
  each_pair do |name, ast|
    start << "#{'  ' * indent}#{name}: #{ast.inspect(indent + 1)}\n"
  rescue ArgumentError
    start << "#{'  ' * indent}#{name}: #{ast.inspect}\n"
  end
  start
end