ModraUp Ruby API Documentation Ruby API Reference

Class: Layout::LayerInstance

Inherits:
Object
  • Object
show all

Overview

An instance of a layer on the page, obtained by Layout::Entity#layer_instance or Layout::Layer#layer_instance.

Examples:

ModraUp.active_model.layout_document.layers[0].layer_instance.definition.name

Instance Method Summary # collapse

Instance Method Details

layer_instance.definition ⇒ Layout::Layer

The corresponding layer definition.

Returns:

  • (Layout::Layer)

Examples:

ModraUp.active_model.layout_document.layers[0].layer_instance.definition

layer_instance == other ⇒ Boolean

Are instances on the same layer.

Parameters:

  • other (Object)

Returns:

  • (Boolean)

Examples:

l = ModraUp.active_model.layout_document.layers[0]
l.layer_instance == l.layer_instance  #=> true