class ReversableTech::Reverter
Constants
- AVAILABLE_ENTITIES
Public Class Methods
new(entity)
click to toggle source
# File lib/reversable_tech.rb, line 11 def initialize(entity) @entity = entity end
Public Instance Methods
call()
click to toggle source
# File lib/reversable_tech.rb, line 15 def call AVAILABLE_ENTITIES[@entity.class].inject(@entity) { |entity, method| entity.__send__(method) } end