class Osheet::Format::Fraction

Public Class Methods

new(opts={}) click to toggle source
# File lib/osheet/format/fraction.rb, line 19
def initialize(opts={})
  self.type = opts[:type] || :two_digits
end

Public Instance Methods

key() click to toggle source
# File lib/osheet/format/fraction.rb, line 27
def key
  "fraction_#{type_key.to_s.gsub('_', '')}"
end
style() click to toggle source
# File lib/osheet/format/fraction.rb, line 23
def style
  "#\ #{type}"
end