Class: BinData::Struct::Snapshot

Inherits:
Hash
  • Object
show all
Defined in:
lib/bindata/struct.rb

Overview

A hash that can be accessed via attributes.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object

:nodoc:



44
45
46
# File 'lib/bindata/struct.rb', line 44

def method_missing(symbol, *args)
  self[symbol.id2name] || super
end