Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/zenaton/refinements/struct.rb

Overview

Reimplements ‘json/add/struct`

Class Method Summary collapse

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