module RubyTCC::Helper

Public Class Methods

camelize(underscored_word) click to toggle source
# File lib/rubytcc/helper.rb, line 9
    def camelize underscored_word
  underscored_word.to_s.gsub(/(?:^|_)(.)/) { $1.upcase }
end
to_period(time) click to toggle source
# File lib/rubytcc/helper.rb, line 4
def to_period(time)
        time = Time.parse(time).to_i
        (time - Time.parse("00:00").to_i) / (15 * 60)
end