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.
72 73 74 |
# File 'lib/ruflet_ui.rb', line 72 def initialize(icon_module) @icon_module = icon_module end |
Instance Method Details
#[](name) ⇒ Object
76 77 78 |
# File 'lib/ruflet_ui.rb', line 76 def [](name) @icon_module[name] end |
#all ⇒ Object
84 85 86 |
# File 'lib/ruflet_ui.rb', line 84 def all @icon_module.all end |
#const_missing(name) ⇒ Object
92 93 94 95 96 |
# File 'lib/ruflet_ui.rb', line 92 def const_missing(name) return @icon_module.const_get(name) if @icon_module.const_defined?(name, false) super end |
#names ⇒ Object
80 81 82 |
# File 'lib/ruflet_ui.rb', line 80 def names @icon_module.names end |
#random ⇒ Object
88 89 90 |
# File 'lib/ruflet_ui.rb', line 88 def random @icon_module.random end |