Class: Ruby::Reflection::ObjectMirror
- Includes:
- AbstractReflection::ObjectMirror
- Defined in:
- lib/ruby/reflection/object_mirror.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from AbstractReflection::Mirror
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_class ⇒ Object
11 12 13 |
# File 'lib/ruby/reflection/object_mirror.rb', line 11 def target_class reflection.reflect @subject.class end |
#variables ⇒ Object
7 8 9 |
# File 'lib/ruby/reflection/object_mirror.rb', line 7 def variables field_mirrors @subject.instance_variables end |