Class: PhantomFormatter
  
  
  
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  
  #before, #enter, #exception, #exception?, #failure?, #finish, #finish_with_code, #initialize, #register, #start
  
    Instance Method Details
    
      
  
  
    #after(state)  ⇒ Object 
  
  
  
  
    
      
138
139
140
141
142
143
144
145 
     | 
    
      # File 'opal/lib/mspec/opal/runner.rb', line 138
def after(state)
  super
  unless exception?
    print '.'
  else
    print failure? ? 'F' : 'E'
  end
end
     | 
  
 
    
      
  
  
    #green(str)  ⇒ Object 
  
  
  
  
    
      
126
127
128 
     | 
    
      # File 'opal/lib/mspec/opal/runner.rb', line 126
def green(str)
  `console.log('\033[32m' + str + '\033[0m')`
end
     | 
  
 
    
      
  
  
    
      
134
135
136 
     | 
    
      # File 'opal/lib/mspec/opal/runner.rb', line 134
def log(str)
  `console.log(str)`
end 
     | 
  
 
    
      
  
  
    
      
130
131
132 
     | 
    
      # File 'opal/lib/mspec/opal/runner.rb', line 130
def red(str)
  `console.log('\033[31m' + str + '\033[0m')`
end
     |