Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
ERB#location=
(::Array[::String | ::Integer]) -> untyped
location = [filename, lineno] => [filename, lineno]
location = filename → filename
lib/erb.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/erb.rb, line 980
def location=((filename, lineno))
@filename = filename
@lineno = lineno if lineno
end
Sets the values of filename and, if given, lineno; see Error Reporting.
See also
#def_module
#make_compiler
#def_method
#new_toplevel
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0