Class: FontAwesome5Rails::Parsers::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, #icon_type_path, #prepend_fa

Constructor Details

#initialize(options) ⇒ FaLayeredIconParser

Returns a new instance of FaLayeredIconParser.



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

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

#aligned ⇒ Object (readonly)

Returns the value of attribute aligned.



8
9
10
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 8

def aligned
  @aligned
end

#size ⇒ Object (readonly)

Returns the value of attribute size.



8
9
10
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 8

def size
  @size
end

#style ⇒ Object (readonly)

Returns the value of attribute style.



8
9
10
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 8

def style
  @style
end

#title ⇒ Object (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 8

def title
  @title
end

Instance Method Details

#classes ⇒ Object



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

def classes
  @classes ||= parse_classes
end