Sha256: b7f2d280a9f480075a13b7106e1406f9186d8e6aee5ac0a02fada621bfe41f27

Contents?: true

Size: 375 Bytes

Versions: 55

Compression:

Stored size: 375 Bytes

Contents

module Preact
  class Params
    include Native::Wrapper

    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
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
isomorfeus-preact-10.9.0 lib/preact/params.rb
isomorfeus-preact-10.8.2 lib/preact/params.rb
isomorfeus-preact-10.8.1 lib/preact/params.rb
isomorfeus-preact-10.8.0 lib/preact/params.rb
isomorfeus-preact-10.7.3 lib/preact/params.rb
isomorfeus-preact-10.7.2 lib/preact/params.rb
isomorfeus-preact-10.7.1 lib/preact/params.rb
isomorfeus-preact-10.7.0 lib/preact/params.rb
isomorfeus-preact-10.6.62 lib/preact/params.rb
isomorfeus-preact-10.6.61 lib/preact/params.rb
isomorfeus-preact-10.6.60 lib/preact/params.rb
isomorfeus-preact-10.6.59 lib/preact/params.rb
isomorfeus-preact-10.6.58 lib/preact/params.rb
isomorfeus-preact-10.6.57 lib/preact/params.rb
isomorfeus-preact-10.6.56 lib/preact/params.rb
isomorfeus-preact-10.6.55 lib/preact/params.rb
isomorfeus-preact-10.6.54 lib/preact/params.rb
isomorfeus-preact-10.6.53 lib/preact/params.rb
isomorfeus-preact-10.6.52 lib/preact/params.rb
isomorfeus-preact-10.6.51 lib/preact/params.rb