class Origen::Component::Component
Componentable
Component
class. This is the general purpose container to just ‘add a thing’
Constants
- COMPONENTABLE_ADDS_ACCESSORS
Public Class Methods
new()
click to toggle source
Kind of ironic really, but since we’re auto-including this when Origen::Model
is included, we can’t include Origen::Model
here or else we’ll get a circular dependency. Note that the parent will still initialize correctly, but we need to initialize Components manually. I.e, the parent will get methods :component, :add_components, :components, etc., but the Component
object won’t be initialized so everything will fail.
# File lib/origen/components.rb, line 18 def initialize Origen::Componentable.init_includer_class(self) end