Class: Alf::Types::Selection

Inherits:
Object
  • Object
show all
Defined in:
lib/alf/types/selection.rb

Instance Method Summary collapse

Instance Method Details

#select(tuple) ⇒ Object


18
19
20
21
# File 'lib/alf/types/selection.rb', line 18

def select(tuple)
  return tuple[reused_instance] unless reused_instance.is_a?(Array)
  reused_instance.map{|s| s.select(tuple) }
end

#to_sObject


23
24
25
# File 'lib/alf/types/selection.rb', line 23

def to_s
  reused_instance.to_s
end