Module: Yarrow::Schema
- Defined in:
- lib/yarrow/schema.rb
Defined Under Namespace
Modules: Type Classes: Entity, Validator, Value
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
126 127 128 129 130 |
# File 'lib/yarrow/schema.rb', line 126 def to_h dictionary.keys.reduce({}) do |h, name| h[name] = instance_variable_get("@#{name}") end end |