lib/spnet/core/block.rb in spnet-0.1.7 vs lib/spnet/core/block.rb in spnet-0.1.8
- old
+ new
@@ -19,10 +19,10 @@
# A new instance of Block.
# @param [Hash] args Hashed arguments for initialization. See Block::ARG_SPECS
# for details of which keys are required.
def initialize args = {}
- hash_make Block::ARG_SPECS, args
+ hash_make args, Block::ARG_SPECS
@initial_params = collect_params
end
# Execute the block algorithm.
# @param [Fixnum] count The number of steps to execute. Passed on to the algorithm Proc.