Sha256: 8e2240a5b83bcfd8ac99e99f7b4c728dc2f2cb110c522ec4bc28b3446bee8a5e

Contents?: true

Size: 260 Bytes

Versions: 34

Compression:

Stored size: 260 Bytes

Contents

require 'pathname'

class Pathname
  include Comparable

  @__path__ = `require('path')`
  `var __path__ = #{@__path__}`

  def absolute?
    `__path__.isAbsolute(#{@path.to_str})`
  end

  def relative?
    !absolute?
  end

  def to_path
    @path
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
opal-1.7.4 stdlib/nodejs/pathname.rb
opal-1.7.3 stdlib/nodejs/pathname.rb
opal-1.7.2 stdlib/nodejs/pathname.rb
opal-1.7.1 stdlib/nodejs/pathname.rb
opal-1.7.0 stdlib/nodejs/pathname.rb
opal-1.7.0.rc1 stdlib/nodejs/pathname.rb
opal-1.6.1 stdlib/nodejs/pathname.rb
opal-1.6.0 stdlib/nodejs/pathname.rb
opal-1.6.0.rc1 stdlib/nodejs/pathname.rb
opal-1.6.0.alpha1 stdlib/nodejs/pathname.rb
opal-1.5.1 stdlib/nodejs/pathname.rb
opal-1.5.0 stdlib/nodejs/pathname.rb
opal-1.5.0.rc1 stdlib/nodejs/pathname.rb
opal-1.4.1 stdlib/nodejs/pathname.rb
opal-1.4.0 stdlib/nodejs/pathname.rb
opal-1.4.0.alpha1 stdlib/nodejs/pathname.rb
opal-1.3.2 stdlib/nodejs/pathname.rb
opal-1.3.1 stdlib/nodejs/pathname.rb
opal-1.3.0 stdlib/nodejs/pathname.rb
opal-1.3.0.rc1 stdlib/nodejs/pathname.rb