Class: Array
- Inherits:
-
Object
show all
- Defined in:
- lib/other.rb
Overview
Class create to manage to_orient and from_orient
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
12
13
14
15
16
|
# File 'lib/other.rb', line 12
def method_missing(method)
unless method == :to_hash || method == :to_str
return self.map{|x| x.public_send(method)}
end
end
|
Instance Method Details
#from_orient ⇒ Object
8
9
10
|
# File 'lib/other.rb', line 8
def from_orient
map &:from_orient
end
|
#to_orient ⇒ Object
4
5
6
|
# File 'lib/other.rb', line 4
def to_orient
map &:to_orient
end
|