Module: Walky::InstanceMethods
- Defined in:
- lib/walky/instance_methods.rb
Instance Attribute Summary collapse
-
#walky_path ⇒ Object
Returns the value of attribute walky_path.
Instance Method Summary collapse
Instance Attribute Details
#walky_path ⇒ Object
Returns the value of attribute walky_path.
3 4 5 |
# File 'lib/walky/instance_methods.rb', line 3 def walky_path @walky_path end |
Instance Method Details
#same_path(*other) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/walky/instance_methods.rb', line 5 def same_path(*other) [].tap do | ary | ary << self other.each do |o| ary << Walker.parse(o, @walky_path) end ary.extend WalkMethods end end |