Class: DrgDSL::Ast::Empty

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/drgdsl/ast.rb

Instance Method Summary collapse

Methods included from Node

#==, #accept, included, #mdc_equality?, node_classes, #pretty_print, #sep_equality?, type, #type

Instance Method Details

#hashObject



302
303
304
# File 'lib/drgdsl/ast.rb', line 302

def hash
  @hash ||= type.hash
end

#to_hashObject



298
299
300
# File 'lib/drgdsl/ast.rb', line 298

def to_hash
  { empty: nil }
end