lib/applix.rb in applix-0.4.13 vs lib/applix.rb in applix-0.4.14
- old
+ new
@@ -115,10 +115,11 @@
target = (app.is_a? Class) ? app.new(opts) : app
while(args && 0 < args.size) do
args = begin
if(op = args.shift)
- puts " --(#{op})-- (#{args.join ', '})"
+ op.gsub!(/(\w)-(\w)/, '\1_\2')
+ #puts " --(#{op})-- (#{args.join ', '})"
if(target == app)
# object target
target.send(op, args, opts)
else
# object instance created from class target