Class: Monolens::Lens::Location
- Inherits:
-
Object
- Object
- Monolens::Lens::Location
- Defined in:
- lib/monolens/lens/location.rb
Instance Method Summary collapse
- #deeper(part) {|Location.new(@parts + [part])| ... } ⇒ Object
-
#initialize(parts = []) ⇒ Location
constructor
A new instance of Location.
- #to_a ⇒ Object
Constructor Details
#initialize(parts = []) ⇒ Location
Returns a new instance of Location.
4 5 6 |
# File 'lib/monolens/lens/location.rb', line 4 def initialize(parts = []) @parts = parts end |