module CodeRay
def encoder format, options = {}
]
stats.real_token_count
stats.type_stats[:integer].count,
puts '%d out of %d tokens have the kind :integer.' % [
stats.encode("puts 17 + 4\n", :ruby)
stats = CodeRay.encoder(:statistic)
require 'coderay'
Example:
+options+ to it.
Finds the Encoder class for +format+ and creates an instance, passing
def encoder format, options = {} CodeRay::Encoders[format].new options end