Class: OrList

Inherits:
Object
  • Object
show all
Defined in:
lib/tiki/list-helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ OrList

Returns a new instance of OrList.



36
37
38
# File 'lib/tiki/list-helpers.rb', line 36

def initialize(*args)
  @list = args
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



34
35
36
# File 'lib/tiki/list-helpers.rb', line 34

def list
  @list
end

Instance Method Details

#|(other) ⇒ Object



40
41
42
43
# File 'lib/tiki/list-helpers.rb', line 40

def |(other)
  @list << other
  self
end