Class: Views::Resources::ShowHasMany
- Inherits:
-
Object
- Object
- Views::Resources::ShowHasMany
- Defined in:
- app/views/resources/show_has_many.rb
Defined Under Namespace
Classes: Column
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
Instance Method Summary collapse
- #column(name, &block) ⇒ Object
-
#initialize(&config) ⇒ ShowHasMany
constructor
A new instance of ShowHasMany.
Constructor Details
#initialize(&config) ⇒ ShowHasMany
Returns a new instance of ShowHasMany.
20 21 22 23 |
# File 'app/views/resources/show_has_many.rb', line 20 def initialize(&config) @columns = [] instance_eval(&config) end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
19 20 21 |
# File 'app/views/resources/show_has_many.rb', line 19 def columns @columns end |