Class: Struct
- Inherits:
-
Object
- Object
- Struct
- Defined in:
- lib/zenaton/refinements/struct.rb
Overview
Reimplements ‘json/add/struct`
Class Method Summary collapse
-
.from_zenaton(props) ⇒ Object
Parse from simple hash.
Class Method Details
.from_zenaton(props) ⇒ Object
Parse from simple hash
23 24 25 |
# File 'lib/zenaton/refinements/struct.rb', line 23 def self.from_zenaton(props) new(*props['v']) end |