Sha256: 126d648ce088b783fd00687d55c4fcca2906e7e3ddfa6ddeff28d2175eaa1c4f

Contents?: true

Size: 438 Bytes

Versions: 31

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

class Code
  class Parser
    class ChainedCall < LeftOperation
      def statement
        SquareBracket
      end

      def dot
        str(".")
      end

      def ampersand
        str("&")
      end

      def colon
        str(":")
      end

      def right_statement
        ChainedCall
      end

      def operator
        dot | (colon << colon) | (ampersand << dot)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
code-ruby-0.15.5 lib/code/parser/chained_call.rb
code-ruby-0.15.4 lib/code/parser/chained_call.rb
code-ruby-0.15.3 lib/code/parser/chained_call.rb
code-ruby-0.15.2 lib/code/parser/chained_call.rb
code-ruby-0.15.0 lib/code/parser/chained_call.rb
code-ruby-0.14.9 lib/code/parser/chained_call.rb
code-ruby-0.14.8 lib/code/parser/chained_call.rb
code-ruby-0.14.6 lib/code/parser/chained_call.rb
code-ruby-0.14.5 lib/code/parser/chained_call.rb
code-ruby-0.14.4 lib/code/parser/chained_call.rb
code-ruby-0.14.3 lib/code/parser/chained_call.rb