Class: ZombieScout::Method
- Inherits:
-
Struct
- Object
- Struct
- ZombieScout::Method
- Defined in:
- lib/zombie_scout/method.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name
2 3 4 |
# File 'lib/zombie_scout/method.rb', line 2 def class_name @class_name end |
#file_path ⇒ Object
Returns the value of attribute file_path
2 3 4 |
# File 'lib/zombie_scout/method.rb', line 2 def file_path @file_path end |
#line_number ⇒ Object
Returns the value of attribute line_number
2 3 4 |
# File 'lib/zombie_scout/method.rb', line 2 def line_number @line_number end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/zombie_scout/method.rb', line 2 def name @name end |
Instance Method Details
#full_name ⇒ Object
3 4 5 |
# File 'lib/zombie_scout/method.rb', line 3 def full_name [class_name, '#', name].join('') end |
#location ⇒ Object
7 8 9 |
# File 'lib/zombie_scout/method.rb', line 7 def location [file_path, line_number].join(':') end |