Module: Kernel

Defined in:
lib/cucumber/formatter/unicode.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cucumber_printObject



16
# File 'lib/cucumber/formatter/unicode.rb', line 16

alias cucumber_print print

#cucumber_putsObject



25
# File 'lib/cucumber/formatter/unicode.rb', line 25

alias cucumber_puts puts


17
18
19
20
21
22
23
# File 'lib/cucumber/formatter/unicode.rb', line 17

def print(*a)
  begin
    cucumber_print(*Iconv.iconv(Cucumber::CODEPAGE, "UTF-8", *a))
  rescue Iconv::IllegalSequence
    cucumber_print(*a)
  end
end

#puts(*a) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/cucumber/formatter/unicode.rb', line 26

def puts(*a)
  begin
    cucumber_puts(*Iconv.iconv(Cucumber::CODEPAGE, "UTF-8", *a))
  rescue Iconv::IllegalSequence
    cucumber_puts(*a)
  end
end