Method: Jenkins::Plugin#import

Defined in:
lib/jenkins/plugin.rb

#import(object) ⇒ Object

Reflect an Java object coming from Jenkins into the context of this plugin If the object is originally from the ruby plugin, and it was previously exported, then it will unwrap it. Otherwise, it will just use the object as a normal Java object.

Parameters:

  • object (Object)

    the object to bring in from the outside

Returns:

  • the best representation of that object for this plugin



165
166
167
# File 'lib/jenkins/plugin.rb', line 165

def import(object)
  @proxies.import object
end