Class: Ui::Utilities

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rapid_ui/utilities.rb

Instance Method Summary collapse

Constructor Details

#initializeUtilities

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