Class: Bade::Runtime::Location
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
5 6 7 |
# File 'lib/bade/runtime.rb', line 5 def label @label end |
#lineno ⇒ Object
Returns the value of attribute lineno
5 6 7 |
# File 'lib/bade/runtime.rb', line 5 def lineno @lineno end |
#path ⇒ Object
Returns the value of attribute path
5 6 7 |
# File 'lib/bade/runtime.rb', line 5 def path @path end |
Instance Method Details
#template? ⇒ Boolean
6 7 8 |
# File 'lib/bade/runtime.rb', line 6 def template? path == TEMPLATE_FILE_NAME || path&.include?('.bade') end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/bade/runtime.rb', line 10 def to_s "#{path || TEMPLATE_FILE_NAME}:#{lineno}:in `#{label}'" end |