Module: Mensa::Config::DslLogic
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/tables/mensa/config/dsl_logic.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'app/tables/mensa/config/dsl_logic.rb', line 5 def config @config end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
5 6 7 |
# File 'app/tables/mensa/config/dsl_logic.rb', line 5 def values @values end |
Instance Method Details
#initialize(name) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/tables/mensa/config/dsl_logic.rb', line 9 def initialize(name, &) @config = {} @config[:name] = name if name @config = @config.merge(default_config.deep_dup) instance_eval(&) if block_given? end |