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

#nameObject

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

#namespaceObject

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

#nodeObject

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

#singletonObject

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

#sourceObject

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

#labelObject



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

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

#lineObject



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

def line = node.location.start_line

#pathObject



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

def path = source.path