Class: Ui::Utilities
- Inherits:
-
Object
- Object
- Ui::Utilities
- Includes:
- Singleton
- Defined in:
- lib/rapid_ui/utilities.rb
Instance Method Summary collapse
- #defaults(component:) ⇒ Object
-
#initialize ⇒ Utilities
constructor
A new instance of Utilities.
Constructor Details
#initialize ⇒ Utilities
Returns a new instance of Utilities.
7 8 9 |
# File 'lib/rapid_ui/utilities.rb', line 7 def initialize @config = RapidUi.configuration.ui_hash end |
Instance Method Details
#defaults(component:) ⇒ Object
11 12 13 |
# File 'lib/rapid_ui/utilities.rb', line 11 def defaults(component:) @config.ui[component] end |