lib/h/helpers.rb in modalh-1.0.5 vs lib/h/helpers.rb in modalh-1.1.1

- old
+ new

@@ -1,10 +1,10 @@ module H # Define methods to_h for H.to, from_h from H.from, xxx_to_h from H.xxx_to, xxx_from_h from H.xxx_from module Helpers - (%w{date number integer logical magnitude}<<nil).each do |type| + (%w{date number integer logical magnitude dms}<<nil).each do |type| %w{from to}.each do |kind| name = [type,kind].compact*'_' define_method "#{name}_h" do |*args| H.send name, *args end \ No newline at end of file