Method: KXI::Reflection::StackFrame#method

Defined in:
lib/kxi/reflection/stack_frame.rb

#methodString?

Returns containing method of frame; nil if none

Returns:

  • (String, nil)

    Name of method that the stack frame represents



32
33
34
35
36
37
# File 'lib/kxi/reflection/stack_frame.rb', line 32

def method
	return nil if @block != nil and @block[0] == '<' and @block[@block.length - 1] == '>'
	return @block unless @block == nil
	return nil if @context != nil and @context[0] == '<' and @context[@context.length - 1] == '>'
	@context
end