lib/meter_cat.rb in meter_cat-0.0.7 vs lib/meter_cat.rb in meter_cat-5.0.0
- old
+ new
@@ -2,16 +2,16 @@
require 'meter_cat/calculator'
require 'meter_cat/config'
module MeterCat
- def self.add( name, value = 1, created_on = Date.today )
- MeterCat::Cache.instance.add( name, value, created_on )
+ def self.add(name, value = 1, created_on = Date.today)
+ MeterCat::Cache.instance.add(name, value, created_on)
end
- def self.set( name, value = 1, created_on = Date.today )
- MeterCat::Meter.set( name, value, created_on )
+ def self.set(name, value = 1, created_on = Date.today)
+ MeterCat::Meter.set(name, value, created_on)
end
def self.config
return MeterCat::Config.instance
end
@@ -20,13 +20,13 @@
yield config
end
def self.mail
MeterCat::MeterMailer.report.deliver
- MeterCat.add( :meter_cat_mail )
+ MeterCat.add(:meter_cat_mail)
end
def self.names
- ( Meter.names + MeterCat::config.calculator.keys ).sort
+ (Meter.names + MeterCat.config.calculator.keys).sort
end
end