Sha256: 939c58c91cb8c85aa7870b7a7b2968fc67fbd0c1162001cb3613c0d0acf3129d
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
def __script__(src) code = [] src = src.unpack("C*").map {|c| c.ord.to_s(6).rjust(3, "0").chars.to_a } src.flatten.map {|n| n.to_i(6) + 1 }.each do |n| code.empty? || code.last.size + n + 1 >= 60 ? code << "" : code.last << " " code.last << "_" * n end ([%q(require "_")] + code).join("\n") end $code, $fragment = [], [] def method_missing(mhd, *x) if x.empty? $code.concat($fragment.reverse) $fragment.clear end $fragment << mhd.to_s.size - 1 end at_exit do $code.concat($fragment.reverse) eval($code.join.scan(/.../).map {|c| c.to_i(6) }.pack("C*")) end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mame-_-1.0 | lib/_.rb |
_-1.0 | lib/_.rb |