lib/kss/section.rb
# Public: The styleguide section for which this comment block references.
#
# Returns the section reference String (ex: "2.1.8").
The styleguide section for which this comment block references.
Returns the section reference String (ex: "2.1.8").
The styleguide section for which this comment block references . Returns the section reference String ( ex : " 2 . 1 . 8 " ) .
def section
      return @section unless @section.nil?
      cleaned  = section_comment.strip.sub(/\.$/, '') 
      @section = cleaned.match(/Styleguide (.+)/i)[1]
      @section
    end
def section return @section unless @section . nil? cleaned = section_comment . strip . sub ( / \. $ / , '' ) @section = cleaned . match ( / Styleguide (.+) /i ) [ 1 ] @section end
Public: The styleguide section for which this comment block references.
Public : The styleguide section for which this comment block references .
# Kill trailing period