Sha256: 486b831619bd0ea9fa55d46231b992eaf51adfa60ea110c1daa48197b65cdc39

Contents?: true

Size: 331 Bytes

Versions: 9

Compression:

Stored size: 331 Bytes

Contents

module Sourcify
  module Proc
    module Scanner #:nodoc:all
      class Comment

        def <<(content)
          (@contents ||= []) << content
        end

        def to_s
          @contents.join
        end

        def closed?
          @contents[-1].split("\n")[-1].strip == '=end'
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sourcify-0.5.0 lib/sourcify/proc/scanner/comment.rb
sourcify-0.4.2 lib/sourcify/proc/scanner/comment.rb
sourcify-0.4.1 lib/sourcify/proc/scanner/comment.rb
sourcify-0.4.0 lib/sourcify/proc/scanner/comment.rb
sourcify-0.3.0 lib/sourcify/proc/scanner/comment.rb
sourcify-0.2.3 lib/sourcify/proc/scanner/comment.rb
sourcify-0.2.2.1 lib/sourcify/proc/scanner/comment.rb
sourcify-0.2.1 lib/sourcify/proc/scanner/comment.rb
sourcify-0.2.0 lib/sourcify/proc/scanner/comment.rb