Class: Java::OrgMozillaJavascript::ScriptStackElement

Inherits:
Object
  • Object
show all
Defined in:
lib/rhino/rhino_ext.rb

Instance Method Summary collapse

Instance Method Details

#file_nameObject

public final String fileName;



270
# File 'lib/rhino/rhino_ext.rb', line 270

def file_name; fileName; end

#function_nameObject

public final String functionName;



271
# File 'lib/rhino/rhino_ext.rb', line 271

def function_name; functionName; end

#line_numberObject

public final int lineNumber;



272
# File 'lib/rhino/rhino_ext.rb', line 272

def line_number; lineNumber; end

#to_sObject



274
275
276
277
278
279
# File 'lib/rhino/rhino_ext.rb', line 274

def to_s
  str = "at #{fileName}"
  str << ':' << lineNumber.to_s if lineNumber > -1
  str << " (#{functionName})" if functionName
  str
end