Class: TurboRex::MSRPC::MIDL::DataType::Array
- Inherits:
-
TurboRex::MSRPC::MIDL::DataType
- Object
- TurboRex::MSRPC::MIDL::DataType
- TurboRex::MSRPC::MIDL::DataType::Array
- Defined in:
- lib/turborex/msrpc/midl.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#member ⇒ Object
readonly
Returns the value of attribute member.
Attributes inherited from TurboRex::MSRPC::MIDL::DataType
Instance Method Summary collapse
-
#initialize(*member) ⇒ Array
constructor
A new instance of Array.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(*member) ⇒ Array
Returns a new instance of Array.
232 233 234 235 |
# File 'lib/turborex/msrpc/midl.rb', line 232 def initialize(*member) @member = member @length = member.length end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
237 238 239 |
# File 'lib/turborex/msrpc/midl.rb', line 237 def method_missing(m, *args, &block) @member.send(m, *args, &block) end |
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length.
230 231 232 |
# File 'lib/turborex/msrpc/midl.rb', line 230 def length @length end |
#member ⇒ Object (readonly)
Returns the value of attribute member.
229 230 231 |
# File 'lib/turborex/msrpc/midl.rb', line 229 def member @member end |