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_anythingObject


12
# File 'lib/oval.rb', line 12

def ov_anything; Oval::Anything; end

#ov_collectionObject


13
# File 'lib/oval.rb', line 13

def ov_collection; Oval::Collection; end

#ov_instance_ofObject


14
# File 'lib/oval.rb', line 14

def ov_instance_of; Oval::InstanceOf; end

#ov_kind_ofObject


15
# File 'lib/oval.rb', line 15

def ov_kind_of; Oval::KindOf; end

#ov_matchObject


16
# File 'lib/oval.rb', line 16

def ov_match; Oval::Match; end

#ov_one_ofObject


17
# File 'lib/oval.rb', line 17

def ov_one_of; Oval::OneOf; end

#ov_optionsObject


18
# File 'lib/oval.rb', line 18

def ov_options; Oval::Options; end

#ov_subclass_ofObject


19
# File 'lib/oval.rb', line 19

def ov_subclass_of; Oval::SubclassOf; end