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-1.1.1 lib/steep/interface/interface.rb
steep-1.1.0 lib/steep/interface/interface.rb
steep-1.1.0.pre.1 lib/steep/interface/interface.rb
steep-1.0.2 lib/steep/interface/interface.rb
steep-1.0.1 lib/steep/interface/interface.rb
steep-1.0.0 lib/steep/interface/interface.rb
steep-0.52.2 lib/steep/interface/interface.rb
steep-0.52.1 lib/steep/interface/interface.rb
steep-0.52.0 lib/steep/interface/interface.rb
steep-0.51.0 lib/steep/interface/interface.rb
steep-0.50.0 lib/steep/interface/interface.rb
steep-0.49.1 lib/steep/interface/interface.rb
steep-0.49.0 lib/steep/interface/interface.rb
steep-0.48.0 lib/steep/interface/interface.rb
steep-0.47.1 lib/steep/interface/interface.rb
steep-0.47.0 lib/steep/interface/interface.rb
steep-0.46.0 lib/steep/interface/interface.rb
steep-0.45.0 lib/steep/interface/interface.rb
steep-0.44.1 lib/steep/interface/interface.rb
steep-0.44.0 lib/steep/interface/interface.rb