Class: PhantomFormatter
Instance Method Summary
collapse
#after, #before, #enter, #exception, #exception?, #failure?, #finish, #finish_with_code, #initialize, #register, #start
Instance Method Details
#green(str) ⇒ Object
125
126
127
|
# File 'opal/lib/mspec/opal/runner.rb', line 125
def green(str)
`console.log('\033[32m' + str + '\033[0m')`
end
|
133
134
135
|
# File 'opal/lib/mspec/opal/runner.rb', line 133
def log(str)
`console.log(str)`
end
|
129
130
131
|
# File 'opal/lib/mspec/opal/runner.rb', line 129
def red(str)
`console.log('\033[31m' + str + '\033[0m')`
end
|