Class: Virtus::ValueObjectBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/virtus/builder.rb

Instance Attribute Summary

Attributes inherited from Builder

#config, #mod

Instance Method Summary collapse

Methods inherited from Builder

call, #initialize, pending

Constructor Details

This class inherits a constructor from Virtus::Builder

Instance Method Details

#extensionsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



122
123
124
125
126
127
128
# File 'lib/virtus/builder.rb', line 122

def extensions
  super + [
    Extensions::AllowedWriterMethods,
    ValueObject::AllowedWriterMethods,
    ValueObject::InstanceMethods
  ]
end

#optionsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



131
132
133
# File 'lib/virtus/builder.rb', line 131

def options
  super.merge(:writer => :private)
end