lib/ctioga2/graphics/elements/primitive.rb in ctioga2-0.10 vs lib/ctioga2/graphics/elements/primitive.rb in ctioga2-0.10.1

- old
+ new

@@ -112,19 +112,19 @@ primitive = TiogaPrimitive.new(name, comp, opts, &code) @known_primitives[name] = primitive # Now, create the command cmd_args = comp.map do |x| - if x.respond_to?(:type) + if x.is_a? CmdArg x else CmdArg.new(x) end end cmd_opts = {} for k,v in opts - cmd_opts[k] = if v.respond_to?(:type) + cmd_opts[k] = if v.is_a? CmdArg v else CmdArg.new(v) end end