Sha256: 787dda5d49853289eab403067796c9cb9024d2b52145026705ab58f97ac18ee8

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

module Ruby
  class Reflection
    class InstanceVariableMirror < FieldMirror
      def value
        reflection.reflect @object.instance_variable_get(@name)
      end

      def value=(o)
        @object.instance_variable_set(@name, o)
      end

      def public?
        false
      end

      def protected?
        false
      end

      def private?
        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubymirrors-0.0.3 lib/ruby/reflection/field_mirror/instance_variable_mirror.rb
rubymirrors-0.0.2 lib/ruby/reflection/field_mirror/instance_variable_mirror.rb
rubymirrors-0.0.1 lib/ruby/reflection/field_mirror/instance_variable_mirror.rb