Class: Changit::Lexer::SectionToken
- Inherits:
-
Object
- Object
- Changit::Lexer::SectionToken
- Defined in:
- lib/changit/lexer/section_token.rb
Instance Attribute Summary collapse
-
#section ⇒ Object
Returns the value of attribute section.
Instance Method Summary collapse
-
#initialize(section) ⇒ SectionToken
constructor
A new instance of SectionToken.
- #to_s ⇒ Object
Constructor Details
#initialize(section) ⇒ SectionToken
Returns a new instance of SectionToken.
6 7 8 |
# File 'lib/changit/lexer/section_token.rb', line 6 def initialize(section) @section = section end |
Instance Attribute Details
#section ⇒ Object
Returns the value of attribute section.
4 5 6 |
# File 'lib/changit/lexer/section_token.rb', line 4 def section @section end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/changit/lexer/section_token.rb', line 10 def to_s "#{@section}\n" end |