Sha256: 1d60dc3abf01f6f023bc9b73da92e4d36afafa3e2e56f80fc9bd684e38497710

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

module Discard
  module Model
    module ClassMethods
      type callback = Symbol | ^() [self: instance] -> void

      def discard_column: () -> Symbol
      def discard_column=: (Symbol) -> Symbol

      def before_discard: (*callback) ? { () [self: instance] -> void } -> void
      def after_discard: (*callback) ? { () [self: instance] -> void } -> void
      def discard_all: () -> void
      def discard_all!: () -> void
      def undiscard_all: () -> void
      def undiscard_all!: () -> void
    end

    module Relation
      def kept: () -> self
      def undiscarded: () -> self
      def discarded: () -> self
      def with_discarded: () -> self
      def discard_all: () -> void
      def discard_all!: () -> void
      def undiscard_all: () -> void
      def undiscard_all!: () -> void
    end

    def discard_column: () -> Symbol
    def discard_column=: (Symbol) -> Symbol

    def discard: () -> bool
    def discard!: () -> void
    def discarded?: () -> bool
    def undiscarded?: () -> bool
    def kept?: () -> bool
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbs_discard-1.0.0 lib/rbs_discard/sig/discard.rbs