lib/code/object/string.rb in template-ruby-0.2.4 vs lib/code/object/string.rb in template-ruby-0.3.0
- old
+ new
@@ -46,12 +46,12 @@
sig(arguments)
Code.evaluate("(_) => { _.#{raw} }")
end
def plus(arguments)
- sig(arguments, ::Code::Object::String)
+ sig(arguments, ::Code::Object)
other = arguments.first.value
- ::Code::Object::String.new(raw + other.raw)
+ ::Code::Object::String.new(raw + other.to_s)
end
def multiplication(arguments)
sig(arguments, ::Code::Object::Number)
other = arguments.first.value