Sha256: c9020c492b5353c00d16fadf2ba94d410901112110477e7a0bee16f7d9bdc878
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 Bytes
Contents
# Cheating; monkeypatching Object is evil. class Object # self-evident def callable?; respond_to? :call; end def number?; kind_of? Numeric; end # while X remains callable, keep calling it to get its value def derive x = self while x.callable? x = x() end return x end end # class String # # this is just horrible # def distorm # Frasm::DistormDecoder.new.decode(self) # end # # def disasm # distorm.each {|i| puts i.mnem} # end # end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
iZsh-ragweed-0.1.8 | lib/ragweed/rasm/util.rb |
tduehr-ragweed-0.1.5 | lib/ragweed/rasm/util.rb |
tduehr-ragweed-0.1.6 | lib/ragweed/rasm/util.rb |