class Iemon::Object

Defined in:

object/object.cr

Macro Summary

Macro Detail

macro assign(n, t) #

Assign a property. The first argument is a name of the property. The second argument is the type. The type have to be primitive or Iemon object.


[View source]
macro assigns(**props) #

Assign properties for the object.

class You
  assigns(x: Int32, y: Int32)
end

You can access them like property macro.

you = You.new
you.x = 2
puts you.y

[View source]
macro assigns(props) #

Assign properties for the object. See above comments for the details.


[View source]