class Preact::Component::Params
Public Instance Methods
method_missing(prop, *args, &block)
click to toggle source
# File lib/preact/component/params.rb, line 6 def method_missing(prop, *args, &block) %x{ const p = #@native; if (typeof p[prop] === 'undefined') { prop = Opal.Preact.lower_camelize(prop); if (typeof p[prop] === 'undefined') { return nil; } } return p[prop]; } end