Module: T::Private::Methods::Modes

Defined in:
lib/types/private/methods/modes.rb

Overview

typed: true

Constant Summary collapse

MODES =
[self.standard, self.abstract, self.overridable, self.override, self.overridable_override, self.untyped].freeze
OVERRIDABLE_MODES =
[self.override, self.overridable, self.overridable_override, self.untyped, self.abstract].freeze
OVERRIDE_MODES =
[self.override, self.overridable_override].freeze
NON_OVERRIDE_MODES =
MODES - OVERRIDE_MODES

Class Method Summary collapse

Class Method Details

.abstractObject



8
9
10
# File 'lib/types/private/methods/modes.rb', line 8

def self.abstract
  'abstract'
end

.overridableObject



11
12
13
# File 'lib/types/private/methods/modes.rb', line 11

def self.overridable
  'overridable'
end

.overridable_overrideObject



17
18
19
# File 'lib/types/private/methods/modes.rb', line 17

def self.overridable_override
  'overridable_override'
end

.overrideObject



14
15
16
# File 'lib/types/private/methods/modes.rb', line 14

def self.override
  'override'
end

.standardObject



5
6
7
# File 'lib/types/private/methods/modes.rb', line 5

def self.standard
  'standard'
end

.untypedObject



20
21
22
# File 'lib/types/private/methods/modes.rb', line 20

def self.untyped
  'untyped'
end