Class: Nero::Ref
- Inherits:
-
Object
- Object
- Nero::Ref
- Defined in:
- lib/nero/ref.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Ref
constructor
path: the keys to follow, e.g.
Constructor Details
#initialize(path) ⇒ Ref
path: the keys to follow, e.g. ["a", "c"] for !ref a.c.
8 |
# File 'lib/nero/ref.rb', line 8 def initialize(path) = @path = path |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/nero/ref.rb', line 5 def path @path end |