Module: Jenkins::Plugin::Behavior::Implementation

Includes:
BehavesAs
Defined in:
lib/jenkins/plugin/behavior.rb

Instance Method Summary collapse

Methods included from BehavesAs

#behaves_as

Instance Method Details

#inherited(cls) ⇒ Object



106
107
108
109
110
111
# File 'lib/jenkins/plugin/behavior.rb', line 106

def inherited(cls)
  super.tap do
    cls.extend Implementation unless cls.is_a? Implementation
    cls.behaves_as *@_behaviors
  end
end