Module: Oval
- Defined in:
- lib/oval.rb,
lib/oval/base.rb
Defined Under Namespace
Classes: Anything, ArrayItem, Base, ClassDeclBase, Collection, DeclError, HashItem, InstanceOf, KindOf, Match, OneOf, Options, SubclassOf, ValueError
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.validate(thing, decl, subject = nil) ⇒ Object
22
23
24
|
# File 'lib/oval.rb', line 22
def validate(thing, decl, subject = nil)
Oval::Base.validate(thing, decl, subject)
end
|
Instance Method Details
#ov_anything ⇒ Object
12
|
# File 'lib/oval.rb', line 12
def ov_anything; Oval::Anything; end
|
#ov_collection ⇒ Object
13
|
# File 'lib/oval.rb', line 13
def ov_collection; Oval::Collection; end
|
#ov_instance_of ⇒ Object
14
|
# File 'lib/oval.rb', line 14
def ov_instance_of; Oval::InstanceOf; end
|
#ov_kind_of ⇒ Object
15
|
# File 'lib/oval.rb', line 15
def ov_kind_of; Oval::KindOf; end
|
#ov_match ⇒ Object
16
|
# File 'lib/oval.rb', line 16
def ov_match; Oval::Match; end
|
#ov_one_of ⇒ Object
17
|
# File 'lib/oval.rb', line 17
def ov_one_of; Oval::OneOf; end
|
#ov_options ⇒ Object
18
|
# File 'lib/oval.rb', line 18
def ov_options; Oval::Options; end
|
#ov_subclass_of ⇒ Object
19
|
# File 'lib/oval.rb', line 19
def ov_subclass_of; Oval::SubclassOf; end
|