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