Class: Txray::MethodEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/txray/method_index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



4
5
6
# File 'lib/txray/method_index.rb', line 4

def name
  @name
end

#namespace ⇒ Object

Returns the value of attribute namespace

Returns:

  • (Object) —

    the current value of namespace



4
5
6
# File 'lib/txray/method_index.rb', line 4

def namespace
  @namespace
end

#node ⇒ Object

Returns the value of attribute node

Returns:

  • (Object) —

    the current value of node



4
5
6
# File 'lib/txray/method_index.rb', line 4

def node
  @node
end

#singleton ⇒ Object

Returns the value of attribute singleton

Returns:

  • (Object) —

    the current value of singleton



4
5
6
# File 'lib/txray/method_index.rb', line 4

def singleton
  @singleton
end

#source ⇒ Object

Returns the value of attribute source

Returns:

  • (Object) —

    the current value of source



4
5
6
# File 'lib/txray/method_index.rb', line 4

def source
  @source
end

Instance Method Details

#label ⇒ Object



5
# File 'lib/txray/method_index.rb', line 5

def label = "#{namespace}#{singleton ? "." : "#"}#{name}"

#line ⇒ Object



6
# File 'lib/txray/method_index.rb', line 6

def line = node.location.start_line

#path ⇒ Object



7
# File 'lib/txray/method_index.rb', line 7

def path = source.path