Class: CSVPlusPlus::Language::Entities::EntityWithArguments
- Defined in:
- lib/csv_plus_plus/language/entities/entity.rb
Overview
An entity that can take arguments
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Attributes inherited from Entity
Instance Method Summary collapse
-
#==(other) ⇒ Object
.
-
#initialize(type, id: nil, arguments: []) ⇒ EntityWithArguments
constructor
initialize.
Methods inherited from Entity
#method_missing, #respond_to_missing?
Constructor Details
#initialize(type, id: nil, arguments: []) ⇒ EntityWithArguments
initialize
50 51 52 53 |
# File 'lib/csv_plus_plus/language/entities/entity.rb', line 50 def initialize(type, id: nil, arguments: []) super(type, id:) @arguments = arguments end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CSVPlusPlus::Language::Entities::Entity
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
47 48 49 |
# File 'lib/csv_plus_plus/language/entities/entity.rb', line 47 def arguments @arguments end |
Instance Method Details
#==(other) ⇒ Object
56 57 58 |
# File 'lib/csv_plus_plus/language/entities/entity.rb', line 56 def ==(other) super && @arguments == other.arguments end |