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
# File 'lib/virtus/builder.rb', line 122

def extensions
  super << 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.


127
128
129
# File 'lib/virtus/builder.rb', line 127

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