Class: ActiveShepherd::ClassValidator
- Inherits:
-
Object
- Object
- ActiveShepherd::ClassValidator
- Defined in:
- lib/active_shepherd/class_validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass) ⇒ ClassValidator
constructor
A new instance of ClassValidator.
- #validate ⇒ Object
Constructor Details
#initialize(klass) ⇒ ClassValidator
Returns a new instance of ClassValidator.
4 5 6 7 |
# File 'lib/active_shepherd/class_validator.rb', line 4 def initialize(klass) @klass = klass @erros = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
2 3 4 |
# File 'lib/active_shepherd/class_validator.rb', line 2 def errors @errors end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
2 3 4 |
# File 'lib/active_shepherd/class_validator.rb', line 2 def klass @klass end |
Instance Method Details
#validate ⇒ Object
9 10 |
# File 'lib/active_shepherd/class_validator.rb', line 9 def validate end |