Class: Overlastic::Configuration
- Inherits:
-
Object
- Object
- Overlastic::Configuration
- Defined in:
- lib/overlastic/configuration.rb
Instance Attribute Summary collapse
-
#default_action ⇒ Object
Returns the value of attribute default_action.
-
#default_overlay ⇒ Object
Returns the value of attribute default_overlay.
-
#default_target ⇒ Object
Returns the value of attribute default_target.
-
#overlay_types ⇒ Object
Returns the value of attribute overlay_types.
Instance Method Summary collapse
- #append_turbo_stream(&block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/overlastic/configuration.rb', line 5 def initialize self. = %i[dialog pane] self. = :dialog self.default_action = :stack self.default_target = :_top end |
Instance Attribute Details
#default_action ⇒ Object
Returns the value of attribute default_action.
3 4 5 |
# File 'lib/overlastic/configuration.rb', line 3 def default_action @default_action end |
#default_overlay ⇒ Object
Returns the value of attribute default_overlay.
3 4 5 |
# File 'lib/overlastic/configuration.rb', line 3 def @default_overlay end |
#default_target ⇒ Object
Returns the value of attribute default_target.
3 4 5 |
# File 'lib/overlastic/configuration.rb', line 3 def default_target @default_target end |
#overlay_types ⇒ Object
Returns the value of attribute overlay_types.
3 4 5 |
# File 'lib/overlastic/configuration.rb', line 3 def @overlay_types end |
Instance Method Details
#append_turbo_stream(&block) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/overlastic/configuration.rb', line 27 def append_turbo_stream(&block) if block_given? @append_turbo_stream = block else @append_turbo_stream end end |