Module: XDry::RetainPolicy::ASSIGN_REF

Defined in:
lib/xdry/boxing.rb

Class Method Summary collapse

Class Method Details

.release(out, expr) ⇒ Object



22
23
# File 'lib/xdry/boxing.rb', line 22

def self.release out, expr
end

.release_and_clear(out, var_name) ⇒ Object



25
26
27
# File 'lib/xdry/boxing.rb', line 25

def self.release_and_clear out, var_name
  out << "#{var_name} = nil;";
end

.retain(expr) ⇒ Object



18
19
20
# File 'lib/xdry/boxing.rb', line 18

def self.retain expr
  expr
end