W3cubDocs

/Crystal 0.31

struct Reflect(X)

Overview

NOTE This type might be removed. :nodoc:

Defined in:

reflect.cr

Constructors

Class Method Summary

  • .first

    For now it's just a way to implement Enumerable#sum in a way that the initial value given to it has the type of the first type in the union, if the type is a union.

Constructor Detail

def self.newSource

Class Method Detail

def self.firstSource

For now it's just a way to implement Enumerable#sum in a way that the initial value given to it has the type of the first type in the union, if the type is a union.

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/Reflect.html