class Iemon::Object
- Iemon::Object
- Reference
- Object
Defined in:
object/object.crMacro Summary
-
assign(n, t)
Assign a property.
-
assigns(**props)
Assign properties for the object.
-
assigns(props)
Assign properties for the object.
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.
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