lib/emittance/emitter.rb in emittance-0.0.6 vs lib/emittance/emitter.rb in emittance-0.1.0
- old
+ new
@@ -112,10 +112,10 @@
module_eval _method_patch_str(method_name, non_emitting_method, identifier), __FILE__, __LINE__ + 1
end
end
def _method_patch_str(method_name, non_emitting_method, identifier)
- <<~RUBY
+ <<-RUBY
def #{method_name}(*args, &blk)
return_value = #{non_emitting_method}(*args, &blk)
if #{!identifier.nil? ? true : false}
emit #{!identifier.nil? ? identifier : false}, payload: return_value
else