Module: StubRequests::Concerns::Property
- Includes:
- ArgumentValidation
- Included in:
- StubRequests::Callback, StubRequests::Configuration, Endpoint, RequestStub, Service
- Defined in:
- lib/stub_requests/concerns/property.rb,
lib/stub_requests/concerns/property/validator.rb
Overview
Module Property provides type checked attribute definition with default value
Defined Under Namespace
Modules: ClassMethods Classes: Validator
Class Method Summary collapse
-
.included(base) ⇒ void
Extends the base class with the ClassMethods module.
Methods included from ArgumentValidation
Class Method Details
.included(base) ⇒ void
This method returns an undefined value.
Extends the base class with the ClassMethods module
27 28 29 30 |
# File 'lib/stub_requests/concerns/property.rb', line 27 def self.included(base) base.class_attribute :properties, default: {} base.send(:extend, ClassMethods) end |