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