Class: Ruby2Jar::Console

Inherits:
Listener show all
Defined in:
lib/ruby2jar/console.rb

Overview

Command line interface for builder. Check builder parameters and print error and warnings to console.

Instance Method Summary collapse

Methods inherited from Listener

#initialize

Constructor Details

This class inherits a constructor from Ruby2Jar::Listener

Instance Method Details

#on_error(error) ⇒ Object

Print message for standart builder error



25
26
27
28
29
30
31
32
# File 'lib/ruby2jar/console.rb', line 25

def on_error(error)
  if Error == error.class
    STDERR.puts "ERROR: #{error.message}"
    true
  else
    false
  end
end