Sha256: 0c81663c5e452e8bec226936bf22b1cafe26ad22f126c56003d7267037317f08

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cbt-0.0.1 lib/luobo/cbt.rb