Class: Coalla::ColumnDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/coalla/builders/column_definition.rb

Direct Known Subclasses

ActionsColumnDefinition

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alignObject

Returns the value of attribute align.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def align
  @align
end

#col_classObject

Returns the value of attribute col_class.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def col_class
  @col_class
end

#colsObject

Returns the value of attribute cols.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def cols
  @cols
end

#editObject

Returns the value of attribute edit.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def edit
  @edit
end

#sortObject

Returns the value of attribute sort.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def sort
  @sort
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def title
  @title
end

#value_extractorObject

Returns the value of attribute value_extractor.



3
4
5
# File 'lib/coalla/builders/column_definition.rb', line 3

def value_extractor
  @value_extractor
end

Instance Method Details

#value(item, context = self) ⇒ Object



5
6
7
# File 'lib/coalla/builders/column_definition.rb', line 5

def value(item, context = self)
  self.value_extractor.call(item)
end