Sha256: 46c7cf0b9887e09c9464c23400126ff490c52dd8432c82053cd19c05f4e138f1

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 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
        Rescue
      end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
code-ruby-0.14.2 lib/code/parser/chained_call.rb
code-ruby-0.14.1 lib/code/parser/chained_call.rb
code-ruby-0.14.0 lib/code/parser/chained_call.rb
code-ruby-0.13.1 lib/code/parser/chained_call.rb
code-ruby-0.13.0 lib/code/parser/chained_call.rb
code-ruby-0.12.0 lib/code/parser/chained_call.rb
code-ruby-0.11.0 lib/code/parser/chained_call.rb
code-ruby-0.10.4 lib/code/parser/chained_call.rb
code-ruby-0.10.3 lib/code/parser/chained_call.rb
code-ruby-0.10.2 lib/code/parser/chained_call.rb
code-ruby-0.10.1 lib/code/parser/chained_call.rb
code-ruby-0.10.0 lib/code/parser/chained_call.rb