Class: DataBindings::DefaultGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/data_bindings/generator.rb

Instance Attribute Summary

Attributes inherited from Generator

#strict

Instance Method Summary collapse

Methods inherited from Generator

#binding_class, #class_for, #for_native, #get_adapter, #get_type, #initialize, #native_constructors, #reader, #register, #type, #write, #write_targets, #writer

Constructor Details

This class inherits a constructor from DataBindings::Generator

Instance Method Details

#reset!Object

Resets the generator to a blank state and installs the json, yaml, ruby and native adpaters



138
139
140
141
142
143
144
145
146
147
148
# File 'lib/data_bindings/generator.rb', line 138

def reset!
  super
  register(:json,       'DataBindings::Adapters::JSON')
  register(:yaml,       'DataBindings::Adapters::YAML')
  register(:ruby,       'DataBindings::Adapters::Ruby')
  register(:native,     'DataBindings::Adapters::Native')
  register(:bson,       'DataBindings::Adapters::BSON')
  register(:params,     'DataBindings::Adapters::Params')
  register(:xml,        'DataBindings::Adapters::XML')
  register(:tnetstring, 'DataBindings::Adapters::TNetstring')
end