Sha256: d0b0c945941197088090ef479099fafd6370b7b07d14cfd54013f57e70a68d8f

Contents?: true

Size: 358 Bytes

Versions: 34

Compression:

Stored size: 358 Bytes

Contents

module Fasterer
  class Token
    def initialize(name)
      @name = name
    end

    def method_definition?
      name == :def
    end

    def method_call?
      name == :call
    end

    def command_call?
      name == :command
    end

    def parallel_assignment?
      name == :massign
    end

    def for_loop?
      name == :for
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fasterer-0.11.0 lib/fasterer/token.rb
fasterer-0.10.1 lib/fasterer/token.rb
fasterer-0.10.0 lib/fasterer/token.rb
fasterer-0.9.0 lib/fasterer/token.rb
fasterer-0.8.3 lib/fasterer/token.rb
fasterer-0.8.2 lib/fasterer/token.rb
fasterer-0.8.1 lib/fasterer/token.rb
fasterer-0.8.0 lib/fasterer/token.rb
fasterer-0.7.1 lib/fasterer/token.rb
fasterer-0.7.0 lib/fasterer/token.rb
fasterer-0.6.0 lib/fasterer/token.rb
fasterer-0.5.1 lib/fasterer/token.rb
fasterer-0.5.0 lib/fasterer/token.rb
fasterer-0.4.2 lib/fasterer/token.rb
fasterer-0.4.1 lib/fasterer/token.rb
fasterer-0.4.0 lib/fasterer/token.rb
fasterer-0.3.2 lib/fasterer/token.rb
fasterer-0.3.1 lib/fasterer/token.rb
fasterer-0.3.0 lib/fasterer/token.rb
fasterer-0.2.1 lib/fasterer/token.rb