Class: KQL::Accessor::Tuple

Inherits:
KQL::Accessor show all
Defined in:
lib/kql/accessor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accessorsObject (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