Method: Vedeu::Interfaces::DSL#use

Defined in:
lib/vedeu/interfaces/dsl.rb

#use(name) ⇒ Vedeu::Interfaces::Interface

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Use a value from another model.

Parameters:

  • name (NilClass|Symbol|String)

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

Returns:



260
261
262
# File 'lib/vedeu/interfaces/dsl.rb', line 260

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