Module: TinyTyping
- Included in:
- Base
- Defined in:
- lib/tinytyping.rb,
lib/tinytyping/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.5.0'
Class Method Summary collapse
Class Method Details
.test!(value, *types) ⇒ Object
72 73 74 |
# File 'lib/tinytyping.rb', line 72 def test!(value, *types) Tester.new(*types).run!(value) end |
.test?(*args) ⇒ Boolean
65 66 67 68 69 70 |
# File 'lib/tinytyping.rb', line 65 def test?(*args) test!(*args) true rescue ArgumentError false end |