platform helper
This commit is contained in:
parent
f4b1290e58
commit
c6f0dc636d
@ -17,6 +17,8 @@ module Risc
|
|||||||
# string given.
|
# string given.
|
||||||
# Currently only "Arm" and "Interpreter"
|
# Currently only "Arm" and "Interpreter"
|
||||||
def self.for( name )
|
def self.for( name )
|
||||||
|
return name if name.is_a?(Platform)
|
||||||
|
name = name.to_s.capitalize
|
||||||
case name
|
case name
|
||||||
when "Arm"
|
when "Arm"
|
||||||
return Arm::ArmPlatform.new
|
return Arm::ArmPlatform.new
|
||||||
|
Loading…
Reference in New Issue
Block a user