Sha256: a028f6faa7f9e68d1a42e8800c32aab11f9ade86b123a025cb7c6fbd0d68a948

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

module Wool
  module SexpAnalysis
    # A single signature in the Wool protocol system. This is just
    # a simple specification of a method that an object can receive,
    # either explicitly or implicitly defined, and the protocols of the
    # return type and all arguments.
    class Signature < Struct.new(:name, :return_protocol, :argument_protocols)
      include Comparable

      def <=>(other)
        [self.name, self.return_protocol, self.argument_protocols] <=>
            [other.name, other.return_protocol, other.argument_protocols]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wool-0.5.1 lib/wool/analysis/signature.rb