Module: UltimateTurboModal

Extended by:
UltimateTurboModal
Included in:
UltimateTurboModal
Defined in:
lib/ultimate_turbo_modal.rb,
lib/ultimate_turbo_modal/railtie.rb,
lib/ultimate_turbo_modal/version.rb,
lib/ultimate_turbo_modal/configuration.rb

Defined Under Namespace

Modules: Flavors, Helpers Classes: Base, Configuration, Error, Railtie

Constant Summary collapse

VERSION =
"1.6.1"

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/ultimate_turbo_modal/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
# File 'lib/ultimate_turbo_modal/configuration.rb', line 8

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end

Instance Method Details



19
20
21
# File 'lib/ultimate_turbo_modal.rb', line 19

def modal_class
  "UltimateTurboModal::Flavors::#{flavor.to_s.classify}".constantize
end

#newObject



15
16
17
# File 'lib/ultimate_turbo_modal.rb', line 15

def new(**)
  modal_class.new(**)
end