vendor/jruby/1.9/gems/flog-4.2.1/lib/flog.rb
##
# Flog the given ruby source, optionally using file to provide paths for
# methods. Does not handle timeouts or syntax errors. See #flog_ruby.
Flog the given ruby source, optionally using file to provide paths for
methods. Does not handle timeouts or syntax errors.
Flog the given ruby source optionally using file to provide paths for methods . Does not handle timeouts or syntax errors .
def flog_ruby! ruby, file="-", timeout = 10
    @parser = (option[:parser] || RubyParser).new
    warn "** flogging #{file}" if option[:verbose]
    ast = @parser.process ruby, file, timeout
    return unless ast
    mass[file] = ast.mass
    process ast
  end
def flog_ruby! ruby , file = "-" , timeout = 10 @parser = ( option [ :parser ] || RubyParser ) . new warn "** flogging #{file}" if option [ :verbose ] ast = @parser . process ruby , file , timeout return unless ast mass [ file ] = ast . mass process ast end
Flog the given ruby source, optionally using file to provide paths for
methods.
Flog the given ruby source optionally using file to provide paths for methods .
ruby
file
timeout