Sha256: 8301fb0c8e158c977dd64b451b2dbef41692ee21ac964f7968a70ed277e9b166

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

require "syllable_counter/version"
require "syllable_counter/rules"

module SyllableCounter
  class Count
    def initialize(calculator = SyllableCounter::Calculator.new)
      @calculator = calculator
    end

    def get_syllables(string)
      @calculator.execute(string)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
syllable_counter-1.0.0 lib/syllable_counter.rb