Class: PhlexKit::Configuration
- Inherits:
-
Object
- Object
- PhlexKit::Configuration
- Defined in:
- lib/phlex_kit/configuration.rb
Overview
Instance Attribute Summary collapse
-
#define_ui_alias ⇒ Object
When true,
UIis aliased toPhlexKit, so revue-styleUI::Buttoncall sites work unchanged. -
#reactive ⇒ Object
:auto (default) enables reactive helpers only when phlex-reactive is loaded; true forces on (raises if the gem is absent); false forces off.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 |
# File 'lib/phlex_kit/configuration.rb', line 20 def initialize @reactive = :auto @define_ui_alias = false end |
Instance Attribute Details
#define_ui_alias ⇒ Object
When true, UI is aliased to PhlexKit, so revue-style UI::Button
call sites work unchanged. Off by default to avoid owning a generic const.
18 19 20 |
# File 'lib/phlex_kit/configuration.rb', line 18 def define_ui_alias @define_ui_alias end |
#reactive ⇒ Object
:auto (default) enables reactive helpers only when phlex-reactive is loaded; true forces on (raises if the gem is absent); false forces off.
14 15 16 |
# File 'lib/phlex_kit/configuration.rb', line 14 def reactive @reactive end |