class IceNine::Freezer::ObjectWithExclussion

Private Class Methods

freeze_instance_variables(object, recursion_guard) click to toggle source
# File lib/active_scaffold/extensions/ice_nine.rb, line 13
def self.freeze_instance_variables(object, recursion_guard)
  object.instance_variables.each do |ivar_name|
    next if excluded_vars.include? ivar_name
    Freezer.guarded_deep_freeze(
      object.instance_variable_get(ivar_name),
      recursion_guard
    )
  end
end