Skip to content

Instantly share code, notes, and snippets.

@Inityx
Last active December 17, 2016 05:56
Show Gist options
  • Save Inityx/6310c5f2e249bb58d2884206f43a9c86 to your computer and use it in GitHub Desktop.
Save Inityx/6310c5f2e249bb58d2884206f43a9c86 to your computer and use it in GitHub Desktop.
class It
def initialize; end
def method_missing(m)
verb = m.to_s.chomp('!').capitalize.sub('_', ', ')
noun = self.class.name.downcase
puts "#{verb} #{noun}"
puts if verb.include?(',')
self
end
end
It.new
.buy!
.use!
.break!
.fix!
.trash!
.change!
.mail_upgrade!
.charge!
.point!
.zoom!
.press!
.snap!
.work!
.quick_erase!
.write!
.cut!
.paste!
.save!
.load!
.check!
.quick_rewrite!
.plug!
.play!
.burn!
.zip!
.drag!
.drop!
.zip_unzip!
.lock!
.fill!
.call!
.find!
.view!
.code!
.jam_unlock!
.surf!
.scroll!
.pause!
.click!
.cross!
.crack!
.switch_update!
.name!
.rate!
.tune!
.print!
.scan!
.send!
.fax_rename!
.touch!
.bring!
.pay!
.watch!
.turn!
.leave!
.start_format!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment