Class: Jekyll::IconList

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/irontask/public/components/font-awesome/src/_plugins/site.rb

Instance Method Summary collapse

Constructor Details

#initialize(icon_array) ⇒ IconList

Returns a new instance of IconList.



45
46
47
48
49
50
51
52
# File 'lib/irontask/public/components/font-awesome/src/_plugins/site.rb', line 45

def initialize(icon_array)
  @original_icon_array = icon_array
  @icon_array = []

  icon_array.each { |icon_object|
    @icon_array << Icon.new(icon_object)
  }
end

Instance Method Details

#[](k) ⇒ Object



54
55
56
# File 'lib/irontask/public/components/font-awesome/src/_plugins/site.rb', line 54

def [](k)
  @icon_array[k]
end

#to_liquidObject



58
59
60
# File 'lib/irontask/public/components/font-awesome/src/_plugins/site.rb', line 58

def to_liquid
  @original_icon_array
end