Class: AndList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AndList

Returns a new instance of AndList.



49
50
51
# File 'lib/tiki/list-helpers.rb', line 49

def initialize(*args)
  @list = args
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



47
48
49
# File 'lib/tiki/list-helpers.rb', line 47

def list
  @list
end

Instance Method Details

#&(other) ⇒ Object



53
54
55
56
# File 'lib/tiki/list-helpers.rb', line 53

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