Class: BCDD::Contract::Null::Checking

Inherits:
Object
  • Object
show all
Includes:
Core::Checking
Defined in:
lib/bcdd/ext/contract/null.rb

Constant Summary collapse

EMPTY_ARRAY =
[].freeze

Instance Method Summary collapse

Constructor Details

#initialize(_checker, value) ⇒ Checking

Returns a new instance of Checking.



11
12
13
14
# File 'lib/bcdd/ext/contract/null.rb', line 11

def initialize(_checker, value)
  @value = value
  @errors = EMPTY_ARRAY
end

Instance Method Details

#errors_messageObject



16
17
18
# File 'lib/bcdd/ext/contract/null.rb', line 16

def errors_message
  ''
end