Class: DrgDSL::Ast::FunctionCall
- Inherits:
-
Object
- Object
- DrgDSL::Ast::FunctionCall
- Includes:
- Node
- Defined in:
- lib/drgdsl/ast.rb
Overview
“Komplizierende_Prozeduren”, “Dialyse”, …
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(name) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
- #to_hash ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
170 171 172 |
# File 'lib/drgdsl/ast.rb', line 170 def name @name end |
Instance Method Details
#hash ⇒ Object
180 181 182 |
# File 'lib/drgdsl/ast.rb', line 180 def hash @hash ||= [type, name].hash end |
#to_hash ⇒ Object
176 177 178 |
# File 'lib/drgdsl/ast.rb', line 176 def to_hash { function_call: name } end |