lib/code/object/global.rb in code-ruby-0.15.9 vs lib/code/object/global.rb in code-ruby-0.15.10
- old
+ new
@@ -87,14 +87,10 @@
else
Class.new(IdentifierList)
end
when "Html"
sig(args) { Object.repeat }
- if arguments.any?
- Html.new(*arguments.raw)
- else
- Class.new(Html)
- end
+ arguments.any? ? Html.new(*arguments.raw) : Class.new(Html)
when "evaluate"
sig(args) { Object }
Code.evaluate(value.to_s)
when "p"
sig(args) { Object.repeat }