adds a lot of to_ssss

This commit is contained in:
Torsten Ruger
2018-04-17 20:26:15 +03:00
parent 7c33f19bee
commit df08cb78e2
9 changed files with 52 additions and 1 deletions

View File

@ -6,7 +6,11 @@ class String
self[0].capitalize + self[1..-1]
end
end
class Class
def short_name
self.name.split("::").last
end
end
# The RiscMachine, is an abstract machine with registers. Think of it as an arm machine with
# normal instruction names. It is not however an abstraction of existing hardware, but only