Class: Octiron::World::TransmogrifyDelegator Private

Inherits:
Object
  • Object
show all
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

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