Class: Fried::Typings::IsStrictly
- Inherits:
-
Object
- Object
- Fried::Typings::IsStrictly
- Defined in:
- lib/fried/typings/is_strictly.rb
Overview
Checks if the object.class is exactly of the passed type
Instance Method Summary collapse
-
#initialize(type) ⇒ IsStrictly
constructor
A new instance of IsStrictly.
- #valid?(obj) ⇒ Boolean
Methods included from Type
Methods included from MetaType
Constructor Details
#initialize(type) ⇒ IsStrictly
Returns a new instance of IsStrictly.
17 18 19 |
# File 'lib/fried/typings/is_strictly.rb', line 17 def initialize(type) @type = type end |