Module: Hatch
Defined Under Namespace
Modules: ClassMethods
Classes: Errors, InvalidAttribute, ValidAttribute, ValidatedAttribute, Validation
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(klass) ⇒ Object
2
3
4
|
# File 'lib/hatch.rb', line 2
def self.included(klass)
klass.extend(ClassMethods)
end
|
Instance Method Details
#errors ⇒ Object
6
7
8
|
# File 'lib/hatch.rb', line 6
def errors
[]
end
|
#valid? ⇒ Boolean
10
11
12
|
# File 'lib/hatch.rb', line 10
def valid?
true
end
|