Files

Class/Module Index [+]

Quicksearch

BinData::RegisterNamePlugin

Parameters

Parameters may be provided at initialisation to control the behaviour of an object. These parameters are:

:name

The name that this object can be referred to may be set explicitly. This is only useful when dynamically generating types. <code><pre>

BinData::Struct.new(:name => :my_struct, :fields => ...)
array = BinData::Array.new(:type => :my_struct)

</pre></code>

Public Instance Methods

initialize_shared_instance() click to toggle source
# File lib/bindata/name.rb, line 21
def initialize_shared_instance
  if has_parameter?(:name)
    RegisteredClasses.register(get_parameter(:name), self)
  end
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.