Class: Osheet::Format::Special

Inherits:
Object
  • Object
show all
Includes:
Enumeration
Defined in:
lib/osheet/format/special.rb

Instance Method Summary collapse

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

#keyObject



23
24
25
# File 'lib/osheet/format/special.rb', line 23

def key
  "special_#{type_key.to_s.gsub('_', '')}"
end

#styleObject



19
20
21
# File 'lib/osheet/format/special.rb', line 19

def style
  type
end