Class: Osheet::Format::Custom
- Inherits:
-
Object
- Object
- Osheet::Format::Custom
- Defined in:
- lib/osheet/format/custom.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ Custom
constructor
A new instance of Custom.
- #key ⇒ Object
- #style ⇒ Object
Constructor Details
#initialize(type) ⇒ Custom
Returns a new instance of Custom.
4 5 6 |
# File 'lib/osheet/format/custom.rb', line 4 def initialize(type) @type = type end |
Instance Method Details
#key ⇒ Object
9 |
# File 'lib/osheet/format/custom.rb', line 9 def key; "custom_#{@type}"; end |
#style ⇒ Object
8 |
# File 'lib/osheet/format/custom.rb', line 8 def style; @type; end |