Class: TurboRex::MSRPC::MIDL::DataType::Array

Inherits:
TurboRex::MSRPC::MIDL::DataType show all
Defined in:
lib/turborex/msrpc/midl.rb

Instance Attribute Summary collapse

Attributes inherited from TurboRex::MSRPC::MIDL::DataType

#bytesize, #symbol_name

Instance Method Summary collapse

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

#lengthObject (readonly)

Returns the value of attribute length.



230
231
232
# File 'lib/turborex/msrpc/midl.rb', line 230

def length
  @length
end

#memberObject (readonly)

Returns the value of attribute member.



229
230
231
# File 'lib/turborex/msrpc/midl.rb', line 229

def member
  @member
end