Module: Sqreen::Backport::OriginalName::ClassMethods

Defined in:
lib/sqreen/backport/original_name.rb

Instance Method Summary collapse

Instance Method Details

#get_original_name(owner, key) ⇒ Object



52
53
54
# File 'lib/sqreen/backport/original_name.rb', line 52

def get_original_name(owner, key)
  original_names(owner)[key]
end

#original_names(owner) ⇒ Object



48
49
50
# File 'lib/sqreen/backport/original_name.rb', line 48

def original_names(owner)
  owner.instance_eval { @__sqreen_backport_original_names ||= Store.new }
end

#set_original_name(owner, key, name) ⇒ Object



56
57
58
# File 'lib/sqreen/backport/original_name.rb', line 56

def set_original_name(owner, key, name)
  original_names(owner)[key] ||= name
end