Class: LibBin::DataShape
- Defined in:
- lib/libbin/data_types.rb,
ext/libbin/libbin_c.c
Overview
Default class used to get the shape of a Structure or of a Structure::Scalar. It maintains a memory of it's members
Instance Attribute Summary collapse
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Attributes inherited from DataRange
Instance Method Summary collapse
-
#initialize(*args) ⇒ DataShape
constructor
A new instance of DataShape.
-
#method_missing(m, *arg, &block) ⇒ Object
Add method readers for members.
Methods inherited from DataRange
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *arg, &block) ⇒ Object
Add method readers for members
71 72 73 74 |
# File 'lib/libbin/data_types.rb', line 71 def method_missing(m, *arg, &block) return @members[m] if @members && @members[m] super end |
Instance Attribute Details
#members ⇒ Object (readonly)
Returns the value of attribute members.
68 69 70 |
# File 'lib/libbin/data_types.rb', line 68 def members @members end |