Sha256: bb482aecb7f47ecf039dc7da9f30845b6fe03af9639baa428117ebe2b9336d64
Contents?: true
Size: 268 Bytes
Versions: 2
Compression:
Stored size: 268 Bytes
Contents
## Class#to_proc require 'facets/class/to_proc' The `Class#to_proc` method provides a convenient way to create new instances from a set of initialization data. person = Struct.new(:name) people = ["joe"].map(&person) people[0].name.assert == "joe"
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | demo/core/class/to_proc.md |
facets-3.1.0 | demo/core/class/to_proc.md |