Sha256: 7965e83ba7639dcfa2a64a9441ac7bb684929c8a219ad9e1a0e31e38741f2d0c

Contents?: true

Size: 302 Bytes

Versions: 14

Compression:

Stored size: 302 Bytes

Contents

require "attentive/token"

module Attentive
  module Tokens
    class Whitespace < StringToken

      # All whitespace is equal
      def ==(other)
        self.class == other.class
      end

      def skippable?
        true
      end

      def whitespace?
        true
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
attentive-0.3.9 lib/attentive/tokens/whitespace.rb
attentive-0.3.8 lib/attentive/tokens/whitespace.rb
attentive-0.3.7 lib/attentive/tokens/whitespace.rb
attentive-0.3.6 lib/attentive/tokens/whitespace.rb
attentive-0.3.5 lib/attentive/tokens/whitespace.rb
attentive-0.3.4 lib/attentive/tokens/whitespace.rb
attentive-0.3.3 lib/attentive/tokens/whitespace.rb
attentive-0.3.2 lib/attentive/tokens/whitespace.rb
attentive-0.3.1 lib/attentive/tokens/whitespace.rb
attentive-0.3.0 lib/attentive/tokens/whitespace.rb
attentive-0.2.0 lib/attentive/tokens/whitespace.rb
attentive-0.1.1 lib/attentive/tokens/whitespace.rb
attentive-0.1.0 lib/attentive/tokens/whitespace.rb
attentive-0.1.0.beta1 lib/attentive/tokens/whitespace.rb