platform helper

This commit is contained in:
Torsten Ruger 2018-07-02 09:36:29 +03:00
parent f4b1290e58
commit c6f0dc636d

View File

@ -17,6 +17,8 @@ module Risc
# string given.
# Currently only "Arm" and "Interpreter"
def self.for( name )
return name if name.is_a?(Platform)
name = name.to_s.capitalize
case name
when "Arm"
return Arm::ArmPlatform.new