Class: StackFrame

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

Defined Under Namespace

Modules: Flags

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



10
11
12
# File 'lib/stackframe.rb', line 10

def filename
  @filename
end

#klassObject

Returns the value of attribute klass.



10
11
12
# File 'lib/stackframe.rb', line 10

def klass
  @klass
end

#line_numberObject

Returns the value of attribute line_number.



10
11
12
# File 'lib/stackframe.rb', line 10

def line_number
  @line_number
end

#methodObject

Returns the value of attribute method.



10
11
12
# File 'lib/stackframe.rb', line 10

def method
  @method
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
15
16
17
# File 'lib/stackframe.rb', line 12

def ==(other)
  line_number == other.line_number && 
    self.method == other.method &&
    klass == other.klass && 
    filename == other.filename
end