Class: Ruby::Reflection::ObjectMirror

Inherits:
Mirror show all
Includes:
AbstractReflection::ObjectMirror
Defined in:
lib/ruby/reflection/object_mirror.rb

Instance Attribute Summary

Attributes included from AbstractReflection::Mirror

#reflection

Instance Method Summary collapse

Methods included from AbstractReflection::ObjectMirror

#class_variables, #instance_eval, #objects_with_references, #path_to, #transitive_closure

Methods included from AbstractReflection::Mirror

#initialize, #mirrors?, #name, #reflectee

Methods included from AbstractReflection::Mirror::ClassMethods

#included, #mirror_class, #new, #reflect, #reflect!, #reflects?, #register_mirror

Instance Method Details

#target_classObject



11
12
13
# File 'lib/ruby/reflection/object_mirror.rb', line 11

def target_class
  reflection.reflect @subject.class
end

#variablesObject



7
8
9
# File 'lib/ruby/reflection/object_mirror.rb', line 7

def variables
  field_mirrors @subject.instance_variables
end