class BloodContracts::Core::Anything

Refinement type which represents data which is always correct

Public Instance Methods

match() click to toggle source

The type which is the result of data matching process (for Anything is always self)

@return [BC::Refined]

# File lib/blood_contracts/core/anything.rb, line 9
def match
  self
end
valid?() click to toggle source

Checks whether the data matches the expectations or not (for Anything is always true)

@return [Boolean]

# File lib/blood_contracts/core/anything.rb, line 18
def valid?
  true
end