Class: Jekyll::AutoScout24::Equipments
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Jekyll::AutoScout24::Equipments
- Includes:
- Enumerable
- Defined in:
- lib/jekyll-autoscout24/backup_reader.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(node) ⇒ Equipments
constructor
ctor.
Constructor Details
#initialize(node) ⇒ Equipments
ctor
75 76 77 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 75 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
72 73 74 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 72 def node @node end |
Instance Method Details
#each ⇒ Object
79 80 81 82 83 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 79 def each @node.locate("equipment").each do |n| yield Entry.new(n) end end |