Class: AndList
- Inherits:
-
Object
- Object
- AndList
- Defined in:
- lib/tiki/list-helpers.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
- #&(other) ⇒ Object
-
#initialize(*args) ⇒ AndList
constructor
A new instance of AndList.
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
#list ⇒ Object (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 |