Sha256: f6745874ae8795f6d399c98222c27ec95bc5b5bfa5833c65ea17efd00c55b3b9

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

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

      def value=(o)
        @object.class_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/class_variable_mirror.rb
rubymirrors-0.0.2 lib/ruby/reflection/field_mirror/class_variable_mirror.rb
rubymirrors-0.0.1 lib/ruby/reflection/field_mirror/class_variable_mirror.rb