Class: RGhost::Grid::FieldFormat::Custom
- Inherits:
-
Object
- Object
- RGhost::Grid::FieldFormat::Custom
- Defined in:
- lib/rghost/grid/field_format.rb
Overview
Prototype to override format method.
Instance Method Summary collapse
- #format ⇒ Object
- #gs_format ⇒ Object
-
#initialize(value) ⇒ Custom
constructor
A new instance of Custom.
Constructor Details
#initialize(value) ⇒ Custom
Returns a new instance of Custom.
29 30 31 |
# File 'lib/rghost/grid/field_format.rb', line 29 def initialize(value) @value=value end |
Instance Method Details
#format ⇒ Object
37 38 39 |
# File 'lib/rghost/grid/field_format.rb', line 37 def format @value.to_s end |
#gs_format ⇒ Object
33 34 35 |
# File 'lib/rghost/grid/field_format.rb', line 33 def gs_format RGhost::Grid::FieldFormat.string(self.format) end |