Method: Governor::Mapping#to

Defined in:
lib/governor/mapping.rb

#toObject

Provides the resource class.



22
23
24
25
26
27
28
# File 'lib/governor/mapping.rb', line 22

def to
  if defined?(ActiveSupport::Dependencies::ClassCache)
    @ref.get @class_name
  else
    @ref.get
  end
end