lib/hcl/utility.rb in zenhob-hcl-0.2.1 vs lib/hcl/utility.rb in zenhob-hcl-0.2.2
- old
+ new
@@ -1,5 +1,5 @@
-class HCl
+module HCl
module Utility
# Convert from decimal to a string of the form HH:MM.
def as_hours hours
minutes = hours.to_f * 60.0
sprintf "%d:%02d", (minutes / 60).to_i, (minutes % 60).to_i