Module: Jenkins::Plugin::Proxy::ProxyFor

Included in:
ClassMethods
Defined in:
lib/jenkins/plugin/proxy.rb

Overview

Used to specify which Ruby class this will act as a proxy

Instance Method Summary collapse

Instance Method Details

#proxy_for(internal_class) ⇒ Object

register this class as a proxy for ‘internal_class`. Jenkins will auto-create instances of this class when passing to ruby and vice-versa



44
45
46
47
# File 'lib/jenkins/plugin/proxy.rb', line 44

def proxy_for(internal_class)
  fail "not a ruby class" unless internal_class.is_a? Class
  Jenkins::Plugin::Proxies.register internal_class, self
end