Module: XDry::RetainPolicy::RETAIN
- Defined in:
- lib/xdry/boxing.rb
Class Method Summary collapse
Class Method Details
.release(out, expr) ⇒ Object
49 50 51 |
# File 'lib/xdry/boxing.rb', line 49 def self.release out, expr out << "[#{expr} release]"; end |
.release_and_clear(out, var_name) ⇒ Object
53 54 55 |
# File 'lib/xdry/boxing.rb', line 53 def self.release_and_clear out, var_name out << "[#{var_name} release], #{var_name} = nil;"; end |
.retain(expr) ⇒ Object
45 46 47 |
# File 'lib/xdry/boxing.rb', line 45 def self.retain expr "[#{expr} retain]" end |