lib/ruote/util/hashdot.rb in ruote-2.1.11 vs lib/ruote/util/hashdot.rb in ruote-2.2.0

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2005-2010, John Mettraux, jmettraux@gmail.com +# Copyright (c) 2005-2011, John Mettraux, jmettraux@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -25,11 +25,11 @@ module Ruote module HashDot - def method_missing (m, *args) + def method_missing(m, *args) m = m.to_s if m[-1, 1] == '=' @@ -60,12 +60,12 @@ end end module WithH - def self.included (target) + def self.included(target) - def target.h_reader (*names) + def target.h_reader(*names) names.each do |name| define_method(name) do @h[name.to_s] end end