Class: Hone::MethodMap::MethodInfo
- Inherits:
-
Data
- Object
- Data
- Hone::MethodMap::MethodInfo
- Defined in:
- lib/hone/method_map.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name
9 10 11 |
# File 'lib/hone/method_map.rb', line 9 def class_name @class_name end |
#end_line ⇒ Object (readonly)
Returns the value of attribute end_line
9 10 11 |
# File 'lib/hone/method_map.rb', line 9 def end_line @end_line end |
#file ⇒ Object (readonly)
Returns the value of attribute file
9 10 11 |
# File 'lib/hone/method_map.rb', line 9 def file @file end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/hone/method_map.rb', line 9 def name @name end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line
9 10 11 |
# File 'lib/hone/method_map.rb', line 9 def start_line @start_line end |
Instance Method Details
#contains_line?(line) ⇒ Boolean
10 11 12 |
# File 'lib/hone/method_map.rb', line 10 def contains_line?(line) (start_line..end_line).cover?(line) end |
#qualified_name ⇒ Object
14 15 16 |
# File 'lib/hone/method_map.rb', line 14 def qualified_name class_name ? "#{class_name}##{name}" : name end |