Class: V8::Portal::Interceptors::PropertyAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/v8/portal/interceptors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePropertyAttributes

Returns a new instance of PropertyAttributes.



24
25
26
# File 'lib/v8/portal/interceptors.rb', line 24

def initialize
  @flags = 0
end

Instance Attribute Details

#flagsObject (readonly)

Returns the value of attribute flags.



23
24
25
# File 'lib/v8/portal/interceptors.rb', line 23

def flags
  @flags
end

Instance Method Details

#dont_deleteObject



40
41
42
43
44
# File 'lib/v8/portal/interceptors.rb', line 40

def dont_delete
  tap do
    @flags |= V8::C::DontDelete
  end
end

#dont_enumObject



34
35
36
37
38
# File 'lib/v8/portal/interceptors.rb', line 34

def dont_enum
  tap do
    @flags |= V8::C::DontEnum
  end
end

#read_onlyObject



28
29
30
31
32
# File 'lib/v8/portal/interceptors.rb', line 28

def read_only
  tap do
    @flags |= V8::C::ReadOnly
  end
end