module Tango
  class Logger
    def self.instance
      @logger ||= Logger.new
    end

    def initialize(io = STDERR)
      @io = io
      @depth = 0
    end

    def enter(step_name)
      log "#{step_name} {"
      @depth += 1
    end

    def leave(step_name)
      @depth -= 1
      log "} √ #{step_name}"
    end

    def log(message)
      @io.puts "#{indent}#{message}"
    end

    def log_raw(message)
      @io.write message
    end

  private

    def indent
      "  " * @depth
    end

  end
end


# coding: utf-8

module Tango
  class Logger
    def self.instance
      @logger ||= Logger.new
    end

    def initialize(io = STDERR)
      @io = io
      @depth = 0
    end

    def enter(step_name)
      log "#{step_name} {"
      @depth += 1
    end

    def leave(step_name)
      @depth -= 1
      log "} √ #{step_name}"
    end

    def log(message)
      @io.puts "#{indent}#{message}"
    end

    def log_raw(message)
      @io.write message
    end

  private

    def indent
      "  " * @depth
    end

  end
end


Add a coding marker so tango runs on ruby 1.9
Add a coding marker so tango runs on ruby 1.9