Class: Jekyll::IconList
- Inherits:
-
Object
- Object
- Jekyll::IconList
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/irontask/public/components/font-awesome/src/_plugins/site.rb
Instance Method Summary collapse
- #[](k) ⇒ Object
-
#initialize(icon_array) ⇒ IconList
constructor
A new instance of IconList.
- #to_liquid ⇒ Object
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_liquid ⇒ Object
58 59 60 |
# File 'lib/irontask/public/components/font-awesome/src/_plugins/site.rb', line 58 def to_liquid @original_icon_array end |