Class: Netzke::Core::ActionConfig
- Inherits:
-
DslConfigBase
- Object
- ActiveSupport::OrderedOptions
- DslConfigBase
- Netzke::Core::ActionConfig
- Defined in:
- lib/netzke/core/action_config.rb
Overview
Instance Method Summary collapse
-
#initialize(name, component) ⇒ ActionConfig
constructor
A new instance of ActionConfig.
- #set_defaults! ⇒ Object
Constructor Details
#initialize(name, component) ⇒ ActionConfig
Returns a new instance of ActionConfig.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/netzke/core/action_config.rb', line 12 def initialize(name, component) super @text = @tooltip = @icon = "" build_localized_attributes self.text = @text.presence || @name.humanize self.tooltip = @tooltip.presence || @name.humanize self.icon = @icon.to_sym if @icon.present? end |