Sha256: a51e939502ec778bd26e79f571949bf5e48ddc58f4428ed8a6b3db878e1482d3

Contents?: true

Size: 685 Bytes

Versions: 3

Compression:

Stored size: 685 Bytes

Contents

module RbsActivemodel
  module ActiveModel
    def self.all: () -> Array[Class]
    def self.class_to_rbs: (Class klass) -> String?

    class Generator
      MIXINS: Array[Module]
      TYPES: Hash[Symbol, Class | String | Symbol]

      @mixins: String
      @attributes: String

      def initialize: (Class klass) -> void
      def generate: () -> String?

      private

      attr_reader klass: Class
      attr_reader klass_name: String

      def format: (String rbs) -> String
      def header: () -> String
      def mixins: () -> String
      def attributes: () -> String
      def footer: () -> String
      def required_attribute?: (String name) -> bool
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbs_activemodel-1.2.0 sig/rbs_activemodel/active_model.rbs
rbs_activemodel-1.1.1 sig/rbs_activemodel/active_model.rbs
rbs_activemodel-1.1.0 sig/rbs_activemodel/active_model.rbs