Sha256: debe8c7127ffdd884e87d88bdaee091e3d552b0d4a74af922fbe8bd4c7bf0872
Contents?: true
Size: 377 Bytes
Versions: 31
Compression:
Stored size: 377 Bytes
Contents
module ActiveMocker module AliasAttribute # Is +new_name+ an alias? def attribute_alias?(new_name) attribute_aliases.key? new_name.to_s end # Returns the original name for the alias +name+ def attribute_alias(name) attribute_aliases[name.to_s] end private def attribute_aliases @attribute_aliases ||= {} end end end
Version data entries
31 entries across 31 versions & 1 rubygems