Class: DrgDSL::Ast::FunctionCall

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

Overview

“Komplizierende_Prozeduren”, “Dialyse”, …

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Node

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

Constructor Details

#initialize(name) ⇒ FunctionCall

Returns a new instance of FunctionCall.



172
173
174
# File 'lib/drgdsl/ast.rb', line 172

def initialize(name)
  @name = name.to_s.strip
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



170
171
172
# File 'lib/drgdsl/ast.rb', line 170

def name
  @name
end

Instance Method Details

#hashObject



180
181
182
# File 'lib/drgdsl/ast.rb', line 180

def hash
  @hash ||= [type, name].hash
end

#to_hashObject



176
177
178
# File 'lib/drgdsl/ast.rb', line 176

def to_hash
  { function_call: name }
end