Module: Jenkins::Model::Describable::Included

Included in:
Jenkins::Model::Describable
Defined in:
lib/jenkins/model/describable.rb

Instance Method Summary collapse

Instance Method Details

#included(mod) ⇒ Object



62
63
64
65
66
67
68
69
70
# File 'lib/jenkins/model/describable.rb', line 62

def included(mod)
  super
  if mod.is_a? Class
    mod.extend DescribeAs
    mod.extend Inherited
  else
    warn "tried to include Describable into a Module. Are you sure?"
  end
end