Class: FaLayeredIconParser

Inherits:
Object
  • Object
show all
Includes:
ParseMethods
Defined in:
lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ParseMethods

#arr_with_fa, #icon_type, #prepend_fa

Constructor Details

#initialize(options) ⇒ FaLayeredIconParser

Returns a new instance of FaLayeredIconParser.



9
10
11
12
13
14
15
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 9

def initialize(options)
  @aligned = options[:aligned].nil? ? true : options[:aligned]
  @style = options[:style]
  @size = options[:size]
  @title = options[:title]
  @options = options
end

Instance Attribute Details

#alignedObject (readonly)

Returns the value of attribute aligned.



6
7
8
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 6

def aligned
  @aligned
end

#sizeObject (readonly)

Returns the value of attribute size.



6
7
8
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 6

def size
  @size
end

#styleObject (readonly)

Returns the value of attribute style.



6
7
8
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 6

def style
  @style
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 6

def title
  @title
end

Instance Method Details

#classesObject



17
18
19
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 17

def classes
  @classes ||= parse_classes
end