Class: PhlexIcons::Base
- Inherits:
-
Phlex::SVG
- Object
- Phlex::SVG
- PhlexIcons::Base
- Defined in:
- lib/phlex-icons/base.rb
Direct Known Subclasses
Huge::Aids, Huge::Alms, Huge::Amie, Huge::Ammo, Huge::Api, Huge::At, Huge::Bank, Huge::Base, Huge::Bed, Huge::Bot, Huge::Cap, Huge::Cd, Huge::Cos, Huge::Cpp, Huge::Cpu, Huge::Dna, Huge::Dua, Huge::Ear, Huge::Eye, Huge::Fry, Huge::Gem, Huge::Gpu, Huge::Gun, Huge::Hat, Huge::Hdd, Huge::Hut, Huge::Ico, Huge::Id, Huge::Imo, Huge::Jar, Huge::Kid, Huge::Man, Huge::Meh, Huge::Npm, Huge::Nut, Huge::Php, Huge::Pi, Huge::Pie, Huge::Pin, Huge::Re, Huge::Rss, Huge::Seo, Huge::Sin, Huge::Ski, Huge::Sql, Huge::Tan, Huge::Tea, Huge::Tie, Huge::Ufo, Huge::Usb, Huge::Van, Huge::Vk, Huge::Vr, Huge::Yen, Huge::Zap, Huge::Zsh, Huge::Zzz
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Base
constructor
A new instance of Base.
- #view_template ⇒ Object
Constructor Details
#initialize(**attrs) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 |
# File 'lib/phlex-icons/base.rb', line 7 def initialize(**attrs) @attrs = attrs attrs[:class] ||= PhlexIcons.configuration.default_classes super() end |
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
5 6 7 |
# File 'lib/phlex-icons/base.rb', line 5 def attrs @attrs end |
Instance Method Details
#view_template ⇒ Object
14 15 16 |
# File 'lib/phlex-icons/base.rb', line 14 def view_template send(variant) if respond_to?(variant) end |