Class: Dry::Struct::Value
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Dry::Struct::Value
- Defined in:
- lib/dry/struct/value.rb
Overview
Value objects behave like Dry::Structs but *deeply frozen* using [‘ice_nine`](github.com/dkubb/ice_nine)
Constant Summary
Constants inherited from Dry::Struct
Instance Attribute Summary
Attributes inherited from Dry::Struct
Class Method Summary collapse
Methods inherited from Dry::Struct
#[], #deconstruct_keys, #initialize, #inspect, loader, #new, #pretty_print, #schema, #to_h
Methods included from ClassInterface
#===, #abstract, #attribute, #attribute?, #attribute_names, #attributes, #attributes_from, #call_safe, #call_unsafe, #constrained?, #constructor, #default?, #failure, #has_attribute?, #inherited, #load, #meta, #new, #optional?, #primitive, #result, #success, #to_ast, #to_proc, #transform_keys, #transform_types, #try, #try_struct, #|
Constructor Details
This class inherits a constructor from Dry::Struct
Class Method Details
.new ⇒ Value
32 33 34 |
# File 'lib/dry/struct/value.rb', line 32 def self.new(*) ::IceNine.deep_freeze(super) end |