module YanSpeller

require 'uri'

Constants

MAJOR
MINOR
PATCH

Public Class Methods

check(text) click to toggle source
# File lib/yan_speller.rb, line 15
def self.check text
  speller = Speller.new
  result = speller.check_spell(text)
  if result == :no_spell_errors
      puts 'No errors.It is all good and right.'
  elsif result == :request_fail
      puts 'Fail to get an answer.'
  else
      puts speller.errors_to_s
  end
end
version() click to toggle source
# File lib/yan_speller.rb, line 9
def self.version
   
  [ MAJOR, MINOR, PATCH ].join '.'

end