Class: Expressir::Express::RemarkScanner::Remark
- Inherits:
-
Struct
- Object
- Struct
- Expressir::Express::RemarkScanner::Remark
- Defined in:
- lib/expressir/express/remark_scanner.rb
Overview
Immutable value object describing a single extracted remark.
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#line ⇒ Object
Returns the value of attribute line.
-
#position ⇒ Object
Returns the value of attribute position.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format
25 26 27 |
# File 'lib/expressir/express/remark_scanner.rb', line 25 def format @format end |
#line ⇒ Object
Returns the value of attribute line
25 26 27 |
# File 'lib/expressir/express/remark_scanner.rb', line 25 def line @line end |
#position ⇒ Object
Returns the value of attribute position
25 26 27 |
# File 'lib/expressir/express/remark_scanner.rb', line 25 def position @position end |
#tag ⇒ Object
Returns the value of attribute tag
25 26 27 |
# File 'lib/expressir/express/remark_scanner.rb', line 25 def tag @tag end |
#text ⇒ Object
Returns the value of attribute text
25 26 27 |
# File 'lib/expressir/express/remark_scanner.rb', line 25 def text @text end |
Instance Method Details
#embedded? ⇒ Boolean
30 31 32 |
# File 'lib/expressir/express/remark_scanner.rb', line 30 def format == EMBEDDED_FORMAT end |
#tagged? ⇒ Boolean
34 35 36 |
# File 'lib/expressir/express/remark_scanner.rb', line 34 def tagged? !tag.nil? && !tag.empty? end |
#tail? ⇒ Boolean
26 27 28 |
# File 'lib/expressir/express/remark_scanner.rb', line 26 def tail? format == TAIL_FORMAT end |