Class: PhlexIcons::Base
- Inherits:
-
Phlex::SVG
- Object
- Phlex::SVG
- PhlexIcons::Base
- Defined in:
- lib/phlex-icons/base.rb
Direct Known Subclasses
Material::Abc, Material::Adb, Material::Add, Material::Air, Material::Aod, Material::Api, Material::Apps, Material::Atm, Material::Base, Material::Bed, Material::Boy, Material::Co2, Material::Css, Material::Dns, Material::Dry, Material::Duo, Material::Dvr, Material::Egg, Material::Fax, Material::Gif, Material::Hd, Material::Hls, Material::Hub, Material::Iso, Material::Key, Material::Lan, Material::Man, Material::Map, Material::Mic, Material::Mms, Material::Mp, Material::Nat, Material::Nfc, Material::Php, Material::Pin, Material::Pix, Material::Rtt, Material::Sd, Material::Sip, Material::Sms, Material::Sos, Material::Spa, Material::Tab, Material::Tag, Material::Toc, Material::Try, Material::Tty, Material::Tv, Material::Usb, Material::Wc, Material::Web
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 |