Sha256: ad8ee8cc16d47832985f947bd3847a947ba89c50e55893de3f6f8c1c8ffef8d2
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
class Dir # OPAL_FS simply points to the main opal.fs namespace. This might be the # default fs in the browser, or may be overriden within the opal build tools # when running on top of the gem runtime. Both are compatible interfaces. `var OPAL_FS = VM.opal.fs;` # Returns a string that is the current working directory for this process. # # @return [String] def self.getwd `return OPAL_FS.cwd;` end # Returns a string that is the current working directory for this process. # # @return [String] def self.pwd `return OPAL_FS.cwd;` end def self.[](*a) `return OPAL_FS.glob.apply(OPAL_FS, a);` end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.2 | gems/core/lib/core/dir.rb |
opal-0.3.1 | gems/core/lib/core/dir.rb |
opal-0.3.0 | gems/core/lib/core/dir.rb |