lib/dagger/default.rb in ruby-dagger-0.3.3 vs lib/dagger/default.rb in ruby-dagger-0.4.0

- old
+ new

@@ -8,12 +8,12 @@ module Dagger # Default value generator for a dictionary class Default using KeyTree::Refinements - def self.proc(*args) - new(*args).default_proc + def self.proc(*args, **kwargs) + new(*args, **kwargs).default_proc end # Initialize a default value generator for a +vertex+ # # :call-seq: @@ -104,11 +104,10 @@ # Return the default value generation rules for a +key+. # # :call-seq: # default_rules(key) => Array of Hash def default_rules(key) - result = @vertex.fetch(@rule_prefix + key, nil) - result + @vertex.fetch(@rule_prefix + key, nil) end # Process the methods in a rule chain # # :call-seq: