Files

Class/Module Index [+]

Quicksearch

BinData::SanitizedField

Attributes

prototype[R]

Public Class Methods

new(name, field_type, field_params, endian) click to toggle source
# File lib/bindata/sanitize.rb, line 36
def initialize(name, field_type, field_params, endian)
  @name      = name
  @prototype = SanitizedPrototype.new(field_type, field_params, endian)
end

Public Instance Methods

instantiate(value = nil, parent = nil) click to toggle source
# File lib/bindata/sanitize.rb, line 51
def instantiate(value = nil, parent = nil)
  @prototype.instantiate(value, parent)
end
name() click to toggle source
# File lib/bindata/sanitize.rb, line 47
def name
  @name
end
name_as_sym() click to toggle source
# File lib/bindata/sanitize.rb, line 43
def name_as_sym
  @name.nil? ? nil : @name.to_sym
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.