Class: Changit::Lexer::SectionToken

Inherits:
Object
  • Object
show all
Defined in:
lib/changit/lexer/section_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sectionObject

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_sObject



10
11
12
# File 'lib/changit/lexer/section_token.rb', line 10

def to_s
  "#{@section}\n"
end