Class: V8::Portal::Interceptors::NamedPropertyQuery

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

Instance Method Summary collapse

Instance Method Details

#call(property, info) ⇒ Object



83
84
85
86
87
88
89
# File 'lib/v8/portal/interceptors.rb', line 83

def call(property, info)
  attributes = PropertyAttributes.new
  result = intercept(info) do |obj, dontintercept|
    @access.query(obj, @to.rb(property), attributes, &dontintercept)
  end
  return result == C::Empty ? result : C::Integer::New(attributes.flags)
end