Class: LocoMotion::Configuration
- Inherits:
-
Object
- Object
- LocoMotion::Configuration
- Defined in:
- lib/loco_motion/configuration.rb
Overview
Configuration class for LocoMotion. Allows developers to customize default behavior across their application.
Instance Attribute Summary collapse
-
#default_alert_timeout ⇒ Integer
The default timeout (in milliseconds) for auto-dismissing alerts.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
48 49 50 |
# File 'lib/loco_motion/configuration.rb', line 48 def initialize @default_alert_timeout = 5000 # 5 seconds default end |
Instance Attribute Details
#default_alert_timeout ⇒ Integer
The default timeout (in milliseconds) for auto-dismissing alerts. This value is used when an Alert component has a timeout set but no explicit value is provided. The default is 5000ms (5 seconds).
46 47 48 |
# File 'lib/loco_motion/configuration.rb', line 46 def default_alert_timeout @default_alert_timeout end |