Class: Ruflet::Icons::IconGroup
- Inherits:
-
Object
- Object
- Ruflet::Icons::IconGroup
- Defined in:
- lib/ruflet_ui.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
- #all ⇒ Object
- #const_missing(name) ⇒ Object
-
#initialize(icon_module) ⇒ IconGroup
constructor
A new instance of IconGroup.
- #names ⇒ Object
- #random ⇒ Object
Constructor Details
#initialize(icon_module) ⇒ IconGroup
Returns a new instance of IconGroup.
57 58 59 |
# File 'lib/ruflet_ui.rb', line 57 def initialize(icon_module) @icon_module = icon_module end |
Instance Method Details
#[](name) ⇒ Object
61 62 63 |
# File 'lib/ruflet_ui.rb', line 61 def [](name) @icon_module[name] end |
#all ⇒ Object
69 70 71 |
# File 'lib/ruflet_ui.rb', line 69 def all @icon_module.all end |
#const_missing(name) ⇒ Object
77 78 79 80 81 |
# File 'lib/ruflet_ui.rb', line 77 def const_missing(name) return @icon_module.const_get(name) if @icon_module.const_defined?(name, false) super end |
#names ⇒ Object
65 66 67 |
# File 'lib/ruflet_ui.rb', line 65 def names @icon_module.names end |
#random ⇒ Object
73 74 75 |
# File 'lib/ruflet_ui.rb', line 73 def random @icon_module.random end |