lib/hash.rb in dev_commands-0.0.39 vs lib/hash.rb in dev_commands-0.0.40
- old
+ new
@@ -1,14 +1,14 @@
class Hash
- def execute
+ def execute value=nil
self.each{|k,v|
v.update if v.respond_to?(:update)
if(v.is_a?(Array) && v.length==0)
self.delete k
else
#puts "executing #{k}"
- v.execute if v.respond_to?(:execute)
+ v.execute(value) if v.respond_to?(:execute)
end
}
end
def to_html
[
\ No newline at end of file