Class: Wizport::Column
- Inherits:
-
Object
- Object
- Wizport::Column
- Defined in:
- lib/wizport/engine/column.rb
Constant Summary collapse
- TYPE =
{default:0, image:1}
- ALIGN =
{}
Instance Attribute Summary collapse
-
#clazz ⇒ Object
Returns the value of attribute clazz.
-
#name ⇒ Object
Returns the value of attribute name.
-
#title ⇒ Object
Returns the value of attribute title.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(options = {}) ⇒ Column
Returns a new instance of Column.
13 14 15 16 17 18 19 |
# File 'lib/wizport/engine/column.rb', line 13 def initialize( = {}) @title = .delete(:title) || "" @name = .delete(:name) || "" @width = .delete(:width) || 50 @clazz = .delete(clazz) || Object end |
Instance Attribute Details
#clazz ⇒ Object
Returns the value of attribute clazz.
11 12 13 |
# File 'lib/wizport/engine/column.rb', line 11 def clazz @clazz end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/wizport/engine/column.rb', line 11 def name @name end |
#title ⇒ Object
Returns the value of attribute title.
11 12 13 |
# File 'lib/wizport/engine/column.rb', line 11 def title @title end |
#width ⇒ Object
Returns the value of attribute width.
11 12 13 |
# File 'lib/wizport/engine/column.rb', line 11 def width @width end |