Class: Fable::DebugMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/fable/debug_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_line_numberObject

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_nameObject

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_nameObject

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_numberObject

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_sObject



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