diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-10-03 17:54:23 -0400 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-10-03 17:54:23 -0400 |
commit | 81ddc500c0954f92e5adf44906c9a1f4313bf25b (patch) | |
tree | 51a3f8e83df990c8cf0b947965aeec15c73558b9 /state.rb | |
parent | 1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454 (diff) | |
download | upstate-81ddc500c0954f92e5adf44906c9a1f4313bf25b.tar.gz upstate-81ddc500c0954f92e5adf44906c9a1f4313bf25b.tar.xz upstate-81ddc500c0954f92e5adf44906c9a1f4313bf25b.zip |
Add default empty params for Hold#initialize
The params argument to Hold#initialize now has a default value
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -242,7 +242,7 @@ class Hold attr :params # Parameters of this hold # +params+ should be a hash of parameters. - def initialize(params) + def initialize(params = {}) raise NoMethodError if self.class == Hold raise TypeError unless params.is_a? Hash @params = params |