Class: Stretchy::Types::Base
- Inherits:
-
Object
- Object
- Stretchy::Types::Base
- Includes:
- Utils::Validation
- Defined in:
- lib/stretchy/types/base.rb
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #to_search ⇒ Object
Methods included from Utils::Validation
#errors, included, #require_one!, #require_only_one!, #valid?, #validate!, #validator
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/stretchy/types/base.rb', line 9 def initialize raise "Override this in subclass" end |
Instance Method Details
#to_search ⇒ Object
13 14 15 |
# File 'lib/stretchy/types/base.rb', line 13 def to_search raise "Override this in subclass" end |