Module: Vedeu::DSL::Use
Overview
Provides helper methods for building views.
Class Method Summary collapse
-
.use(value) ⇒ Vedeu::Interface
Use the specified interface; useful for sharing attributes with other interfaces.
Instance Method Summary collapse
-
#use(value) ⇒ Vedeu::Interface
Use the specified interface; useful for sharing attributes with other interfaces.
Class Method Details
.use(value) ⇒ Vedeu::Interface
Use the specified interface; useful for sharing attributes with other interfaces. Any public method of Interface is available.
36 37 38 39 40 41 42 43 44 |
# File 'lib/vedeu/dsl/shared/use.rb', line 36 def use(value) if Vedeu.interfaces.registered?(value) == false fail ModelNotFound, "The properties of this interface (#{value}) " \ "cannot be used, since the interface has not " \ "been defined." end Vedeu.interfaces.find(value) end |
Instance Method Details
#use(value) ⇒ Vedeu::Interface
Use the specified interface; useful for sharing attributes with other interfaces. Any public method of Interface is available.
36 37 38 39 40 41 42 43 44 |
# File 'lib/vedeu/dsl/shared/use.rb', line 36 def use(value) if Vedeu.interfaces.registered?(value) == false fail ModelNotFound, "The properties of this interface (#{value}) " \ "cannot be used, since the interface has not " \ "been defined." end Vedeu.interfaces.find(value) end |