From c6f0dc636d5fa9322a672dfa365ae693557490da Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 2 Jul 2018 09:36:29 +0300 Subject: [PATCH] platform helper --- lib/risc/platform.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/risc/platform.rb b/lib/risc/platform.rb index 361be82d..f305f2b2 100644 --- a/lib/risc/platform.rb +++ b/lib/risc/platform.rb @@ -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