Sha256: 529c7bf7f0cad94f16681ed8a7797577853ebac493490e0224ec154aec34f4cb
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
class MatchData def inspect "#<MatchData #{`self.$data[0]`.inspect}>" end def to_s `return self.$data[0];` end def length `return self.$data.length;` end def size `return self.$data.length;` end def to_a `return [].slice.call(self.$data, 0);` end def [](index) `var length = self.$data.length; if (index < 0) index += length; if (index >= length || index < 0) return nil; return self.$data[index];` end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.10 | corelib/match_data.rb |
opal-0.3.9 | corelib/match_data.rb |
opal-0.3.6 | lib/core/match_data.rb |