Class: Fable::DebugMetadata
- Inherits:
-
Object
- Object
- Fable::DebugMetadata
- Defined in:
- lib/fable/debug_metadata.rb
Instance Attribute Summary collapse
-
#end_line_number ⇒ Object
Returns the value of attribute end_line_number.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#source_name ⇒ Object
Returns the value of attribute source_name.
-
#start_line_number ⇒ Object
Returns the value of attribute start_line_number.
Instance Method Summary collapse
Instance Attribute Details
#end_line_number ⇒ Object
Returns the value of attribute end_line_number.
3 4 5 |
# File 'lib/fable/debug_metadata.rb', line 3 def end_line_number @end_line_number end |
#file_name ⇒ Object
Returns the value of attribute file_name.
3 4 5 |
# File 'lib/fable/debug_metadata.rb', line 3 def file_name @file_name end |
#source_name ⇒ Object
Returns the value of attribute source_name.
3 4 5 |
# File 'lib/fable/debug_metadata.rb', line 3 def source_name @source_name end |
#start_line_number ⇒ Object
Returns the value of attribute start_line_number.
3 4 5 |
# File 'lib/fable/debug_metadata.rb', line 3 def start_line_number @start_line_number end |
Instance Method Details
#to_s ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fable/debug_metadata.rb', line 5 def to_s if !file_name.nil? "line #{start_line_number} of #{file_name}" else "line #{start_line_number}" end end |