Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/hash.rb
Defined Under Namespace
Classes: HashType
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#kind_of?(type) ⇒ Boolean
19 20 21 22 23 24 25 26 27 |
# File 'lib/hash.rb', line 19 def kind_of? type if type.kind_of? HashType self.each do |k,v| return false if not type.is_type_of?(k, v) end else orig_kind_of? type end end |
#orig_kind_of? ⇒ Object
17 |
# File 'lib/hash.rb', line 17 alias_method :orig_kind_of?, :kind_of? |