Class: Typ::Is
- Inherits:
-
Object
- Object
- Typ::Is
- Defined in:
- lib/typ.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Array
Class Attribute Summary collapse
-
.check ⇒ Object
Returns the value of attribute check.
Instance Method Summary collapse
-
#initialize(object) ⇒ Is
constructor
A new instance of Is.
- #ok? ⇒ Boolean
Constructor Details
#initialize(object) ⇒ Is
Returns a new instance of Is.
44 45 46 |
# File 'lib/typ.rb', line 44 def initialize object @ok = self.class.check[object] end |
Class Attribute Details
.check ⇒ Object
Returns the value of attribute check.
41 42 43 |
# File 'lib/typ.rb', line 41 def check @check end |
Instance Method Details
#ok? ⇒ Boolean
48 49 50 |
# File 'lib/typ.rb', line 48 def ok? @ok end |