Class: Array
Direct Known Subclasses
Instance Method Summary collapse
-
#analyse ⇒ Object
used to enable def abc *key where key is a Range, an comma separated List or an item aimed to support #compose_where.
- #from_orient ⇒ Object
- #to_human ⇒ Object
- #to_or ⇒ Object
-
#to_orient ⇒ Object
Class extentions to manage to_orient and from_orient.
Instance Method Details
#analyse ⇒ Object
used to enable def abc *key where key is a Range, an comma separated List or an item aimed to support #compose_where
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/other.rb', line 23 def analyse # :nodoc: if first.is_a?(Range) first elsif size ==1 first else self end end |
#from_orient ⇒ Object
12 13 14 |
# File 'lib/other.rb', line 12 def from_orient map &:from_orient end |
#to_human ⇒ Object
16 17 18 |
# File 'lib/other.rb', line 16 def to_human map &:to_human end |
#to_or ⇒ Object
8 9 10 |
# File 'lib/other.rb', line 8 def to_or "["+ map( &:to_or).join(', ')+"]" end |
#to_orient ⇒ Object
Class extentions to manage to_orient and from_orient
4 5 6 |
# File 'lib/other.rb', line 4 def to_orient map( &:to_orient) # .join(',') end |