Class: Jekyll::AutoScout24::Images
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Jekyll::AutoScout24::Images
- 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) ⇒ Images
constructor
ctor.
Constructor Details
#initialize(node) ⇒ Images
ctor
58 59 60 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 58 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
55 56 57 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 55 def node @node end |
Instance Method Details
#each ⇒ Object
62 63 64 65 66 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 62 def each @node.locate("image").each do |n| yield Entry.new(n) end end |