Class: XDry::Boxing::NopConverter

Inherits:
Boxer
  • Object
show all
Defined in:
lib/xdry/boxing.rb

Instance Method Summary collapse

Methods inherited from Boxer

#unbox_retained

Instance Method Details

#box(out, data_expr, tempvar_prefix) ⇒ Object



112
113
114
# File 'lib/xdry/boxing.rb', line 112

def box out, data_expr, tempvar_prefix
  data_expr
end

#retain_policyObject



120
# File 'lib/xdry/boxing.rb', line 120

def retain_policy; RetainPolicy::RETAIN; end

#unbox(out, object_expr, tempvar_prefix) ⇒ Object



116
117
118
# File 'lib/xdry/boxing.rb', line 116

def unbox out, object_expr, tempvar_prefix
  object_expr
end