Sha256: c40d291c4536aa64b99343a6e8daf1ab2a5f28ca70b8c38fee6741753d43cc8f

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

module Maglev
  class Reflection
    class ObjectMirror < Ruby::Reflection::ObjectMirror
      reflect! Object

      private
      def field_mirrors(list, subject = @subject)
        list.collect do |name|
          field_mirror(subject, name)
        end
      end

      def field_mirror(subject, name)
        reflection.reflect FieldMirror::Field.new(subject, name)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubymirrors-0.0.3 lib/maglev/reflection/object_mirror.rb
rubymirrors-0.0.2 lib/maglev/reflection/object_mirror.rb
rubymirrors-0.0.1 lib/maglev/reflection/object_mirror.rb