Module: Contracts

Defined Under Namespace

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

Constant Summary collapse

VectorOf =
Contracts::CollectionOf::Factory.new(::Hamster::Vector)
ImmutableSetOf =
Contracts::CollectionOf::Factory.new(::Hamster::Set)
ImmutableSortedSetOf =
Contracts::CollectionOf::Factory.new(::Hamster::SortedSet)
OldResourceList =
Contracts::ArrayOf[IsA['Middleman::Sitemap::Resource']
ResourceList =
Contracts::Or[ImmutableSetOf[IsA['Middleman::Sitemap::Resource']], ImmutableSortedSetOf[IsA['Middleman::Sitemap::Resource']], 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



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

def Contract(*); end