Class: QED::Parser::Section
- Inherits:
-
Object
- Object
- QED::Parser::Section
- Defined in:
- lib/qed/parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, line) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(text, line) ⇒ Section
Returns a new instance of Section.
80 81 82 83 |
# File 'lib/qed/parser.rb', line 80 def initialize(text, line) @text = text @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
79 80 81 |
# File 'lib/qed/parser.rb', line 79 def line @line end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
78 79 80 |
# File 'lib/qed/parser.rb', line 78 def text @text end |