Class: BinData::Struct::Snapshot
- Inherits:
-
Hash
- Object
- Hash
- BinData::Struct::Snapshot
- Defined in:
- lib/bindata/struct.rb
Overview
A hash that can be accessed via attributes.
Instance Method Summary collapse
- #method_missing(symbol, *args) ⇒ Object
-
#respond_to?(symbol, include_private = false) ⇒ Boolean
:nodoc:.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
72 73 74 |
# File 'lib/bindata/struct.rb', line 72 def method_missing(symbol, *args) self[symbol.to_s] || super end |
Instance Method Details
#respond_to?(symbol, include_private = false) ⇒ Boolean
:nodoc:
68 69 70 |
# File 'lib/bindata/struct.rb', line 68 def respond_to?(symbol, include_private = false) has_key?(symbol.to_s) || super end |