module Interview::ObjectContext

Attributes

object[R]

Public Class Methods

new() click to toggle source
# File lib/interview/object_context.rb, line 6
def initialize
  puts "DEPRECATION WARNING: Interview::ObjectContext is deprecated."
end

Public Instance Methods

object=(object) click to toggle source
# File lib/interview/object_context.rb, line 10
def object=(object)
  if object.is_a? String
    @object = Object::const_get(object.camelcase).new
  elsif object.is_a? Class
    @object = object.new
  else
    @object = object
  end
end