Class: FaLayeredIconParser
- Inherits:
-
Object
- Object
- FaLayeredIconParser
- Includes:
- ParseMethods
- Defined in:
- lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb
Instance Attribute Summary collapse
-
#aligned ⇒ Object
readonly
Returns the value of attribute aligned.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #classes ⇒ Object
-
#initialize(options) ⇒ FaLayeredIconParser
constructor
A new instance of FaLayeredIconParser.
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() @aligned = [:aligned].nil? ? true : [:aligned] @style = [:style] @size = [:size] @title = [:title] @options = end |
Instance Attribute Details
#aligned ⇒ Object (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 |
#size ⇒ Object (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 |
#style ⇒ Object (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 |
#title ⇒ Object (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
#classes ⇒ Object
17 18 19 |
# File 'lib/font_awesome5_rails/parsers/fa_layered_icon_parser.rb', line 17 def classes @classes ||= parse_classes end |