Module: Contracts

Defined Under Namespace

Classes: And, Any, Args, ArrayOf, Bool, Callable, Exactly, Frozen, HashOf, IsA, Maybe, Neg, None, Not, Num, Or, Pos, RespondTo, Send, SetOf, Xor

Constant Summary

VectorOf =
Contracts::CollectionOf::Factory.new(::Hamster::Vector)
ResourceList =
Contracts::ArrayOf[IsA['Middleman::Sitemap::Resource']
PATH_MATCHER =
Or[String, RespondTo[:match], RespondTo[:call], RespondTo[:to_s]

Instance Method Summary collapse

Instance Method Details

#ContractObject

rubocop:disable MethodName



31
# File 'middleman-core/lib/middleman-core/contracts.rb', line 31

def Contract(*); end