Sha256: 612d8a323f909ff76f95c3224b9e29a22be89cef88d5f7e8a34e96aa91c54a9b

Contents?: true

Size: 562 Bytes

Versions: 38

Compression:

Stored size: 562 Bytes

Contents

module Steep
  module Interface
    class Interface
      class Entry
        attr_reader :method_types

        def initialize(method_types:)
          @method_types = method_types
        end

        def to_s
          "{ #{method_types.join(" || ")} }"
        end
      end

      attr_reader :type
      attr_reader :methods

      def initialize(type:, private:)
        @type = type
        @private = private
        @methods = {}
      end

      def private?
        @private
      end

      def public?
        !private?
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
steep-0.43.1 lib/steep/interface/interface.rb
steep-0.43.0 lib/steep/interface/interface.rb
steep-0.42.0 lib/steep/interface/interface.rb
steep-0.41.0 lib/steep/interface/interface.rb
steep-0.40.0 lib/steep/interface/interface.rb
steep-0.39.0 lib/steep/interface/interface.rb
steep-0.38.0 lib/steep/interface/interface.rb
steep-0.37.0 lib/steep/interface/interface.rb
steep-0.36.0 lib/steep/interface/interface.rb
steep-0.35.0 lib/steep/interface/interface.rb
steep-0.34.0 lib/steep/interface/interface.rb
steep-0.33.0 lib/steep/interface/interface.rb
steep-0.32.0 lib/steep/interface/interface.rb
steep-0.31.1 lib/steep/interface/interface.rb
steep-0.31.0 lib/steep/interface/interface.rb
steep-0.30.0 lib/steep/interface/interface.rb
steep-0.29.0 lib/steep/interface/interface.rb
steep-0.28.0 lib/steep/interface/interface.rb