Sha256: b4b175720d6d29b64b1bee093023f60ca2d352cf9e319b8e35e417f84813fe02

Contents?: true

Size: 647 Bytes

Versions: 12

Compression:

Stored size: 647 Bytes

Contents

### use

Use the attribute of stored model.

This DSL method provides access to a stored model by name.
You can then request an attribute of that model for use within
the current model. The models which current support this are
Border, Geometry and Interface.

    # Here the character used for :my_border is used in
    # :my_other_border.
    Vedeu.border :my_other_border do
      top_right use(:my_border).top_right
    end


- Only models of the same repository can be used in this
  way.
- If the stored model cannot be found, a ModelNotFound
  exception may be raised, or the request for an attribute
  may raise a NoMethodError exception.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.8.32 docs/dsl/by_method/use.md
vedeu-0.8.31 docs/dsl/by_method/use.md
vedeu-0.8.30 docs/dsl/by_method/use.md
vedeu-0.8.29 docs/dsl/by_method/use.md
vedeu-0.8.28 docs/dsl/by_method/use.md
vedeu-0.8.27 docs/dsl/by_method/use.md
vedeu-0.8.26 docs/dsl/by_method/use.md
vedeu-0.8.25 docs/dsl/by_method/use.md
vedeu-0.8.24 docs/dsl/by_method/use.md
vedeu-0.8.23 docs/dsl/by_method/use.md
vedeu-0.8.22 docs/dsl/by_method/use.md
vedeu-0.8.21 docs/dsl/by_method/use.md