Sha256: 9d6a1d42e6f76c9fa57f0b1a1cfdb5ef5e281e2537ee2b335fe1ccc4b2c0233b

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'maglev/reflection/core_ext/module'
require 'maglev/reflection/core_ext/class'

module Maglev
  class Reflection
    class FixedInstanceVariableMirror < FieldMirror
      def initialize(obj)
        super
        fixed_ivs = @object.__inst_var_names.to_a
        @index = index(@name)
      end

      def public?
        false
      end

      def protected?
        false
      end

      def private?
        true
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubymirrors-0.0.3 lib/maglev/reflection/field_mirror/fixed_instance_variable_mirror.rb
rubymirrors-0.0.2 lib/maglev/reflection/field_mirror/fixed_instance_variable_mirror.rb