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.2.0 lib/fasterer/token.rb
fasterer-0.1.12 lib/fasterer/token.rb
fasterer-0.1.11 lib/fasterer/token.rb
fasterer-0.1.10 lib/fasterer/token.rb
fasterer-0.1.9 lib/fasterer/token.rb
fasterer-0.1.8 lib/fasterer/token.rb
fasterer-0.1.7 lib/fasterer/token.rb
fasterer-0.1.6 lib/fasterer/token.rb
fasterer-0.1.5 lib/fasterer/token.rb
fasterer-0.1.4 lib/fasterer/token.rb
fasterer-0.1.3 lib/fasterer/token.rb
fasterer-0.1.2 lib/fasterer/token.rb
fasterer-0.1.1 lib/fasterer/token.rb
fasterer-0.1.0 lib/fasterer/token.rb