Module: Vedeu::DSL::Use

Included in:
Borders::DSL, Views, Geometries::DSL, Interfaces::DSL, Views::View::DSL
Defined in:
lib/vedeu/dsl/use.rb

Overview

Provides helper methods for building views.

Instance Method Summary collapse

Instance Method Details

#use(name) ⇒ void

This method returns an undefined value.

Parameters:

  • name (NilClass|Symbol|String)

    The name of the model or target model to act upon. May default to ‘Vedeu.focus`.

Raises:

  • Vedeu::Error::ModelNotFound|Vedeu::Error::NoMethodError

    The model or attribute cannot be found.



17
18
19
# File 'lib/vedeu/dsl/use.rb', line 17

def use(name)
  model.repository.by_name(name)
end