Sha256: cd927b01287150c319a1b1d19546c69f9a69af5cc59f7c09f27b5934c8c73465

Contents?: true

Size: 273 Bytes

Versions: 15

Compression:

Stored size: 273 Bytes

Contents

module Kernel
  def pretty_inspect; inspect; end

  if `(typeof console === "undefined" || typeof console.log === "undefined")`
    alias :pp :p
  else
    def pp *args
      args.each { |obj| `console.log(obj);` }
      args.length <= 1 ? args[0] : args
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
opal-0.7.2 stdlib/pp.rb
opal-0.7.1 stdlib/pp.rb
opal-0.7.0 stdlib/pp.rb
opal-0.7.0.rc1 stdlib/pp.rb
opal-0.7.0.beta3 stdlib/pp.rb
opal-0.6.3 stdlib/pp.rb
opal-0.7.0.beta2 stdlib/pp.rb
opal-cj-0.7.0.beta2 stdlib/pp.rb
opal-cj-0.7.0.beta1 stdlib/pp.rb
opal-0.7.0.beta1 stdlib/pp.rb
opal-0.6.2 stdlib/pp.rb
opal-0.6.1 stdlib/pp.rb
opal-0.6.0 stdlib/pp.rb
opal-0.5.5 stdlib/pp.rb
opal-0.5.4 stdlib/pp.rb