Class: V8::Portal::Interceptors::PropertyAttributes
- Defined in:
- lib/v8/portal/interceptors.rb
Instance Attribute Summary collapse
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
Instance Method Summary collapse
- #dont_delete ⇒ Object
- #dont_enum ⇒ Object
-
#initialize ⇒ PropertyAttributes
constructor
A new instance of PropertyAttributes.
- #read_only ⇒ Object
Constructor Details
#initialize ⇒ PropertyAttributes
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
#flags ⇒ Object (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_delete ⇒ Object
40 41 42 43 44 |
# File 'lib/v8/portal/interceptors.rb', line 40 def dont_delete tap do @flags |= V8::C::DontDelete end end |