lib/spoom/deadcode/erb.rb in spoom-1.2.3 vs lib/spoom/deadcode/erb.rb in spoom-1.2.4
- old
+ new
@@ -42,11 +42,11 @@
super
end
private
- sig { params(text: T.untyped).void }
+ sig { override.params(text: T.untyped).void }
def add_text(text)
return if text.empty?
if text == "\n"
@newline_pending += 1
@@ -60,11 +60,11 @@
end
end
BLOCK_EXPR = /\s*((\s+|\))do|\{)(\s*\|[^|]*\|)?\s*\Z/
- sig { params(indicator: T.untyped, code: T.untyped).void }
+ sig { override.params(indicator: T.untyped, code: T.untyped).void }
def add_expression(indicator, code)
flush_newline_if_pending(src)
src << bufvar << if (indicator == "==") || @escape
".safe_expr_append="
@@ -77,16 +77,16 @@
else
src << "(" << code << ");"
end
end
- sig { params(code: T.untyped).void }
+ sig { override.params(code: T.untyped).void }
def add_code(code)
flush_newline_if_pending(src)
super
end
- sig { params(_: T.untyped).void }
+ sig { override.params(_: T.untyped).void }
def add_postamble(_)
flush_newline_if_pending(src)
super
end