Class: UltimateTurboModal::Configuration
- Inherits:
-
Object
- Object
- UltimateTurboModal::Configuration
- Defined in:
- lib/ultimate_turbo_modal/configuration.rb
Defined Under Namespace
Classes: BaseConfig, DrawerConfig, ModalConfig
Instance Attribute Summary collapse
-
#allowed_click_outside_selector ⇒ Object
Returns the value of attribute allowed_click_outside_selector.
-
#drawer_config ⇒ Object
readonly
Returns the value of attribute drawer_config.
-
#flavor ⇒ Object
Returns the value of attribute flavor.
-
#modal_config ⇒ Object
readonly
Returns the value of attribute modal_config.
Instance Method Summary collapse
- #drawer {|@drawer_config| ... } ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #modal {|@modal_config| ... } ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 20 def initialize @flavor = :tailwind @allowed_click_outside_selector = [] @modal_config = ModalConfig.new @drawer_config = DrawerConfig.new end |
Instance Attribute Details
#allowed_click_outside_selector ⇒ Object
Returns the value of attribute allowed_click_outside_selector.
18 19 20 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 18 def allowed_click_outside_selector @allowed_click_outside_selector end |
#drawer_config ⇒ Object (readonly)
Returns the value of attribute drawer_config.
17 18 19 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 17 def drawer_config @drawer_config end |
#flavor ⇒ Object
Returns the value of attribute flavor.
17 18 19 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 17 def flavor @flavor end |
#modal_config ⇒ Object (readonly)
Returns the value of attribute modal_config.
17 18 19 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 17 def modal_config @modal_config end |
Instance Method Details
#drawer {|@drawer_config| ... } ⇒ Object
32 33 34 35 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 32 def drawer yield(@drawer_config) if block_given? @drawer_config end |
#modal {|@modal_config| ... } ⇒ Object
27 28 29 30 |
# File 'lib/ultimate_turbo_modal/configuration.rb', line 27 def modal yield(@modal_config) if block_given? @modal_config end |