Class: Vedeu::API::Composition

Inherits:
Composition show all
Defined in:
lib/vedeu/api/composition.rb

Instance Attribute Summary

Attributes inherited from Composition

#attributes

Instance Method Summary collapse

Methods inherited from Composition

build, #defaults, #initialize, #interfaces, #method_missing, #to_s

Constructor Details

This class inherits a constructor from Vedeu::Composition

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Vedeu::Composition

Instance Method Details

#view(name, &block) ⇒ Object

See Also:



7
8
9
# File 'lib/vedeu/api/composition.rb', line 7

def view(name, &block)
  attributes[:interfaces] << Interface.build({ name: name }, &block)
end