Class: ActiveShepherd::ClassValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/active_shepherd/class_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



2
3
4
# File 'lib/active_shepherd/class_validator.rb', line 2

def errors
  @errors
end

#klassObject (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

#validateObject



9
10
# File 'lib/active_shepherd/class_validator.rb', line 9

def validate
end