module Bable
Constants
- VERSION
Public Class Methods
index(text, index: :coleman_liau)
click to toggle source
Instantiate a readability index calculator.
@param text [String] the text to analyse. @param index [Symbol] the index to use (in underscore format). @return [Babel::Index::Base] the instantiated subclass of
`Babel::Index::Base` according to the index.
# File lib/bable.rb, line 17 def index(text, index: :coleman_liau) Index.target_class(index).new(text) end