Class: Octiron::World::TransmogrifyDelegator Private
- Inherits:
-
Object
- Object
- Octiron::World::TransmogrifyDelegator
- Defined in:
- lib/octiron/world.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Delegator for the transmogrify(FROM).to TO syntax
Instance Method Summary collapse
-
#initialize(from) ⇒ TransmogrifyDelegator
constructor
private
A new instance of TransmogrifyDelegator.
- #to(to) ⇒ Object private
Constructor Details
#initialize(from) ⇒ TransmogrifyDelegator
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TransmogrifyDelegator.
61 62 63 |
# File 'lib/octiron/world.rb', line 61 def initialize(from) @from = from end |
Instance Method Details
#to(to) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
65 66 67 |
# File 'lib/octiron/world.rb', line 65 def to(to) return ::Octiron::World.transmogrifier_registry.transmogrify(@from, to) end |