Class: Jekyll::AutoScout24::Images

Inherits:
Liquid::Drop
  • Object
show all
Includes:
Enumerable
Defined in:
lib/jekyll-autoscout24/backup_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject (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

#eachObject



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