Sha256: 59fdd53569fea904bec3837670c5a349452a7b023a9034aefa5504966955d013
Contents?: true
Size: 475 Bytes
Versions: 119
Compression:
Stored size: 475 Bytes
Contents
package com.xruby.runtime.builtin; import j2me.io.File; import com.xruby.runtime.lang.RubyBlock; import com.xruby.runtime.lang.RubyValue; ////@RubyLevelModule(name="FileTest") public class RubyFileTestModule { //@RubyLevelMethod(name="exist?", singleton=true) public static RubyValue exist_p(RubyValue receiver, RubyValue arg, RubyBlock block) { RubyString s = (RubyString)arg; File f = new File(s.toString()); return ObjectFactory.createBoolean(f.exists()); } }
Version data entries
119 entries across 119 versions & 1 rubygems