Module: Contracts::Stringy
- Defined in:
- lib/contracts/stringy.rb,
lib/contracts/stringy/version.rb
Defined Under Namespace
Classes: Bool, Float, Int, Name, Pos, URLSafe, UUID
Constant Summary collapse
- INTEGER_REGEX =
/\A[\-+]?\d+\z/
- FLOAT_REGEX =
/\A[\-+]?\d+\.\d+\z/
- POS_REGEX =
/\A\d+\z/
- UUID_REGEX =
/\A[0-9a-f]{8}\-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/i
- URLSAFE_REGEX =
/\A[ \-\+\w]+\z/
- VERSION =
"0.1.1"