Class: QED::Parser::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/qed/parser.rb

Direct Known Subclasses

CodeSection, TextSection

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lineObject (readonly)

Returns the value of attribute line.



79
80
81
# File 'lib/qed/parser.rb', line 79

def line
  @line
end

#textObject (readonly)

Returns the value of attribute text.



78
79
80
# File 'lib/qed/parser.rb', line 78

def text
  @text
end