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.0.0/lib/erb.rb, line 936
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.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0