Module: BCDD::Contract
- Defined in:
- lib/bcdd/ext/contract.rb,
lib/bcdd/ext/contract/null.rb,
lib/bcdd/ext/contract/respond_to.rb
Defined Under Namespace
Modules: Null
Class Method Summary collapse
-
.null(value) ⇒ Object
TODO: Move to bcdd-contract.
-
.respond_to(args) ⇒ Object
TODO: Move to bcdd-contract.
-
.type(arg) ⇒ Object
TODO: Move to bcdd-contract.
Class Method Details
.null(value) ⇒ Object
TODO: Move to bcdd-contract
23 24 25 |
# File 'lib/bcdd/ext/contract/null.rb', line 23 def self.null(value) Null::Checking.new(nil, value) end |
.respond_to(args) ⇒ Object
TODO: Move to bcdd-contract
43 44 45 |
# File 'lib/bcdd/ext/contract/respond_to.rb', line 43 def self.respond_to(args) RespondTo.new(args) end |
.type(arg) ⇒ Object
TODO: Move to bcdd-contract
11 12 13 14 15 |
# File 'lib/bcdd/ext/contract.rb', line 11 def self.type(arg) arg.is_a?(::Module) or raise ::ArgumentError, format('%p must be a class OR module', arg) unit(arg) end |