Class: Txray::MethodEntry
- Inherits:
-
Struct
- Object
- Struct
- Txray::MethodEntry
- Defined in:
- lib/txray/method_index.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#node ⇒ Object
Returns the value of attribute node.
-
#singleton ⇒ Object
Returns the value of attribute singleton.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/txray/method_index.rb', line 4 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace
4 5 6 |
# File 'lib/txray/method_index.rb', line 4 def namespace @namespace end |
#node ⇒ Object
Returns the value of attribute node
4 5 6 |
# File 'lib/txray/method_index.rb', line 4 def node @node end |
#singleton ⇒ Object
Returns the value of attribute singleton
4 5 6 |
# File 'lib/txray/method_index.rb', line 4 def singleton @singleton end |
#source ⇒ Object
Returns the value of attribute 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 |