class

Celestine::Drawable

Inherits Reference / Object

Basic SVG drawable, inheritted by stuff like circles, rectangles, etc.

Instance methods

class_attribute(io : IO)

Rendered class options

Source
classes

A list of the classes for this object

Source
classes=(classes : Array(String))

A list of the classes for this object

Source
custom_attribute(io : IO)

Rendered custom attributes

Source
custom_attrs

A list of custom attributes

Source
custom_attrs=(custom_attrs : Hash(String, String))

A list of custom attributes

Source
draw(io : IO) : Nil

Main draw method for a drawable. Takes in and interacts with an io.

Source
id

ID of this object

Source
id=(id : String | Nil)

ID of this object

Source
id_attribute(io : IO)

Render ID options

Source
inner_elements

The inner elements of this drawable.

Source
inner_elements=(inner_elements : IO::Memory)

The inner elements of this drawable.

Source
style

A list of the style options

Source
style=(style : Hash(String, String))

A list of the style options

Source
style_attribute(io : IO)

Rendered style options

Source

Nested types