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. -
#icon_library ⇒ Object
Which icon set PhlexKit::Icon (and every built-in component glyph) draws from: :lucide (default, shadcn's own), :tabler, :phosphor, or :remix.
-
#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.
26 27 28 29 30 |
# File 'lib/phlex_kit/configuration.rb', line 26 def initialize @reactive = :auto @define_ui_alias = false @icon_library = :lucide 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 |
#icon_library ⇒ Object
Which icon set PhlexKit::Icon (and every built-in component glyph) draws from: :lucide (default, shadcn's own), :tabler, :phosphor, or :remix. HugeIcons is deliberately absent — its free set forbids redistribution, so its artwork can't ship inside this gem.
24 25 26 |
# File 'lib/phlex_kit/configuration.rb', line 24 def icon_library @icon_library 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 |