Class: BinData::DSLMixin::UnSanitizedField

Inherits:
Array
  • Object
show all
Defined in:
lib/bindata/dsl.rb

Overview

An array containing a field definition of the form expected by BinData::Struct.

Instance Method Summary collapse

Constructor Details

#initialize(type, name, params) ⇒ UnSanitizedField

Returns a new instance of UnSanitizedField.



320
321
322
323
# File 'lib/bindata/dsl.rb', line 320

def initialize(type, name, params)
  super()
  self << type << name << params
end

Instance Method Details

#nameObject



327
328
329
# File 'lib/bindata/dsl.rb', line 327

def name
  self[1]
end

#paramsObject



330
331
332
# File 'lib/bindata/dsl.rb', line 330

def params
  self[2]
end

#typeObject



324
325
326
# File 'lib/bindata/dsl.rb', line 324

def type
  self[0]
end