spots/spots.rb
####
## little arg(ument)s helper for spots method call arguments
##   let's us "compose" args
little arg(ument)s helper for spots method call arguments
let's us "compose" args
little arg ( ument ) s helper for spots method call arguments let ' s us " compose " args
def args( args, **kwargs )
  args = [args]   if args.is_a?( Integer )
  argsnew = []
  argsnew[0] = args[0]
  argsnew[1] = (args[1] || {}).merge( kwargs )
  argsnew
end
def args ( args , ** kwargs ) args = [ args ] if args . is_a? ( Integer ) argsnew = [ ] argsnew [ 0 ] = args [ 0 ] argsnew [ 1 ] = ( args [ 1 ] || { } ) . merge ( kwargs ) argsnew end
little arg(ument)s helper for spots method call arguments
let's us "compose" args
little arg ( ument ) s helper for spots method call arguments let ' s us " compose " args
args
<not_specific>
kwargs
<not_specific>