Module: Jenkins::Plugin::Proxy::Marshal

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

Overview

Make sure that proxy classes do not try to persist the plugin parameter. when serializing this proxy to XStream. It will be reconstructed with

Unmarshal#read_completed

Instance Method Summary collapse

Instance Method Details

#transient?(field) ⇒ Boolean

Tell XStream that we never want to persist the @plugin field



58
59
60
# File 'lib/jenkins/plugin/proxy.rb', line 58

def transient?(field)
  field.to_s == "plugin" or (super if defined? super)
end