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.



14
15
16
# File 'lib/osheet/format/special.rb', line 14

def initialize(opts={})
  self.type = opts[:type]
end

Instance Method Details

#keyObject



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

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

#styleObject



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

def style
  type
end