Class: Mensa::Config::TableDsl

Inherits:
Object
  • Object
show all
Includes:
DslLogic
Defined in:
app/tables/mensa/config/table_dsl.rb

Instance Attribute Summary

Attributes included from DslLogic

#config, #values

Instance Method Summary collapse

Methods included from DslLogic

#initialize

Instance Method Details

#internal(name, &block) ⇒ Object

Syntactic sugar for ‘column :carrier_id do internal true end`.



88
89
90
91
92
93
# File 'app/tables/mensa/config/table_dsl.rb', line 88

def internal(name, &block)
  column(name) do
    internal true
    instance_exec(&block) if block
  end
end