Class: Osheet::Format::Special
- Inherits:
-
Object
- Object
- Osheet::Format::Special
- Includes:
- Enumeration
- Defined in:
- lib/osheet/format/special.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Special
constructor
A new instance of Special.
- #key ⇒ Object
- #style ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Special
Returns a new instance of Special.
15 16 17 |
# File 'lib/osheet/format/special.rb', line 15 def initialize(opts={}) self.type = opts[:type] end |
Instance Method Details
#key ⇒ Object
23 24 25 |
# File 'lib/osheet/format/special.rb', line 23 def key "special_#{type_key.to_s.gsub('_', '')}" end |
#style ⇒ Object
19 20 21 |
# File 'lib/osheet/format/special.rb', line 19 def style type end |