Class: KQL::Accessor::Tuple
- Inherits:
-
KQL::Accessor
- Object
- KQL::Accessor
- KQL::Accessor::Tuple
- Defined in:
- lib/kql/accessor.rb
Instance Attribute Summary collapse
-
#accessors ⇒ Object
readonly
Returns the value of attribute accessors.
Instance Method Summary collapse
- #execute(node) ⇒ Object
-
#initialize(accessors) ⇒ Tuple
constructor
A new instance of Tuple.
Constructor Details
#initialize(accessors) ⇒ Tuple
Returns a new instance of Tuple.
90 91 92 |
# File 'lib/kql/accessor.rb', line 90 def initialize(accessors) @accessors = accessors end |
Instance Attribute Details
#accessors ⇒ Object (readonly)
Returns the value of attribute accessors.
88 89 90 |
# File 'lib/kql/accessor.rb', line 88 def accessors @accessors end |
Instance Method Details
#execute(node) ⇒ Object
94 95 96 |
# File 'lib/kql/accessor.rb', line 94 def execute(node) accessors.map { |a| a.execute(node) } end |