Module: Mensa::Config::DslLogic

Extended by:
ActiveSupport::Concern
Included in:
ActionDsl, ColumnDsl, FilterDsl, RenderDsl, TableDsl
Defined in:
app/tables/mensa/config/dsl_logic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'app/tables/mensa/config/dsl_logic.rb', line 5

def config
  @config
end

#valuesObject (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