Class: Sass::Logger::SourceSpan
- Inherits:
-
Object
- Object
- Sass::Logger::SourceSpan
- Defined in:
- lib/sass/logger/source_span.rb
Overview
A span of text within a source file.
Instance Attribute Summary collapse
- #context ⇒ String? readonly
- #end ⇒ SourceLocation readonly
- #start ⇒ SourceLocation readonly
- #text ⇒ String readonly
- #url ⇒ String? readonly
Instance Method Summary collapse
-
#initialize(start, end_, text, url, context) ⇒ SourceSpan
constructor
A new instance of SourceSpan.
Constructor Details
#initialize(start, end_, text, url, context) ⇒ SourceSpan
Returns a new instance of SourceSpan.
18 19 20 21 22 23 24 |
# File 'lib/sass/logger/source_span.rb', line 18 def initialize(start, end_, text, url, context) @start = start @end = end_ @text = text @url = url @context = context end |
Instance Attribute Details
#context ⇒ String? (readonly)
16 17 18 |
# File 'lib/sass/logger/source_span.rb', line 16 def context @context end |
#end ⇒ SourceLocation (readonly)
10 11 12 |
# File 'lib/sass/logger/source_span.rb', line 10 def end @end end |
#start ⇒ SourceLocation (readonly)
10 11 12 |
# File 'lib/sass/logger/source_span.rb', line 10 def start @start end |
#text ⇒ String (readonly)
13 14 15 |
# File 'lib/sass/logger/source_span.rb', line 13 def text @text end |
#url ⇒ String? (readonly)
16 17 18 |
# File 'lib/sass/logger/source_span.rb', line 16 def url @url end |