Class: WebConsole::SourceLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/web_console/source_location.rb

Instance Method Summary collapse

Constructor Details

#initialize(binding) ⇒ SourceLocation

Returns a new instance of SourceLocation.



5
6
7
# File 'lib/web_console/source_location.rb', line 5

def initialize(binding)
  @binding = binding
end

Instance Method Details

#linenoObject



11
# File 'lib/web_console/source_location.rb', line 11

def lineno() @binding.source_location.last end

#pathObject



10
# File 'lib/web_console/source_location.rb', line 10

def path() @binding.source_location.first end