require 'luobo' class CbtLuobo < Luobo attr_accessor :platform def self.cp! s, t, p k = self.new s, t k.platform = p k.process! end def do__platform token str = '' token.blocks.each do |line| line.gsub!(/^\s\s?/, '') str += token.indent + line + "\n" end str end def do_ios token do__platform token if @platform == 'ios' end end