Class: Clive::Type::Octal

Inherits:
Object show all
Defined in:
lib/clive/type/definitions.rb

Overview

Octal matches any octal number which may (or may not) be prefixed with “0” or “0o” (or even “0O”) so 25, 025, 0o25 and 0O25 are all valid and will give the same result, the Integer 21.

Method Summary

Methods inherited from Object

#typecast, #valid?

Methods inherited from Clive::Type

cast, find_class, match, refute, #typecast, typecast, #valid?, valid?