Module: LazyStatic
- Defined in:
- lib/lazy_static.rb,
lib/lazy_static/version.rb
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.check(object, is_a:) ⇒ Object
4 5 6 |
# File 'lib/lazy_static.rb', line 4 def self.check(object, is_a:) is_a === object or raise TypeError, "Expected #{object} to be #{is_a}" end |