lib/kss/comment_parser.rb
# Parse the file or string for comment blocks and populate them into @blocks.
#
# Returns an Array of parsed comment Strings.
Parse the file or string for comment blocks and populate them into @blocks.
Returns an Array of parsed comment Strings.
Parse the file or string for comment blocks and populate them into @blocks . Returns an Array of parsed comment Strings .
def parse_blocks
      if !@file_path.nil?
        File.open @file_path do |file|
          parse_blocks_input(file)
        end
      else
        parse_blocks_input(@string_input)
      end
    end
def parse_blocks if ! @file_path . nil? File . open @file_path do | file | parse_blocks_input ( file ) end else parse_blocks_input ( @string_input ) end end
Parse the file or string for comment blocks and populate them into @blocks.
Parse the file or string for comment blocks and populate them into @blocks .
# the input is an existing file # @file_path is nil, we then expect the input to be a String