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.6.50 lib/preact/params.rb
isomorfeus-preact-10.6.49 lib/preact/params.rb
isomorfeus-preact-10.6.48 lib/preact/params.rb
isomorfeus-preact-10.6.47 lib/preact/params.rb
isomorfeus-preact-10.6.46 lib/preact/params.rb
isomorfeus-preact-10.6.45 lib/preact/params.rb
isomorfeus-preact-10.6.44 lib/preact/params.rb
isomorfeus-preact-10.6.43 lib/preact/params.rb
isomorfeus-preact-10.6.42 lib/preact/params.rb
isomorfeus-preact-10.6.41 lib/preact/params.rb
isomorfeus-preact-10.6.40 lib/preact/params.rb
isomorfeus-preact-10.6.39 lib/preact/params.rb
isomorfeus-preact-10.6.38 lib/preact/params.rb
isomorfeus-preact-10.6.37 lib/preact/params.rb
isomorfeus-preact-10.6.36 lib/preact/params.rb
isomorfeus-preact-10.6.35 lib/preact/params.rb
isomorfeus-preact-10.6.34 lib/preact/params.rb
isomorfeus-preact-10.6.33 lib/preact/params.rb
isomorfeus-preact-10.6.32 lib/preact/params.rb
isomorfeus-preact-10.6.31 lib/preact/params.rb