Module: Solid::Result::Contract::Disabled

Extended by:
Interface
Defined in:
lib/solid/result/contract/disabled.rb

Class Method Summary collapse

Methods included from Interface

allowed_types, type!, type?, type_and_value!

Class Method Details

.allowed_typesObject



9
10
11
# File 'lib/solid/result/contract/disabled.rb', line 9

def self.allowed_types
  EMPTY_SET
end

.type!(type) ⇒ Object



17
18
19
# File 'lib/solid/result/contract/disabled.rb', line 17

def self.type!(type)
  type
end

.type?(_type) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/solid/result/contract/disabled.rb', line 13

def self.type?(_type)
  true
end

.type_and_value!(_data) ⇒ Object



21
# File 'lib/solid/result/contract/disabled.rb', line 21

def self.type_and_value!(_data); end