Class: WebConsole::SourceLocation
- Inherits:
-
Object
- Object
- WebConsole::SourceLocation
- Defined in:
- lib/web_console/source_location.rb
Instance Method Summary collapse
-
#initialize(binding) ⇒ SourceLocation
constructor
A new instance of SourceLocation.
- #lineno ⇒ Object
- #path ⇒ Object
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
#lineno ⇒ Object
11 |
# File 'lib/web_console/source_location.rb', line 11 def lineno() @binding.source_location.last end |
#path ⇒ Object
10 |
# File 'lib/web_console/source_location.rb', line 10 def path() @binding.source_location.first end |