Class: Ruby::Reflection::ObjectMirror

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

Direct Known Subclasses

ClassMirror, ThreadMirror

Instance Method Summary collapse

Methods included from AbstractReflection::ObjectMirror

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

Methods included from AbstractReflection::Mirror

#initialize, #name

Methods included from AbstractReflection::Mirror::ClassMethods

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

Instance Method Details

#variablesObject



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

def variables
  field_mirrors @subject.instance_variables
end