Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding method 'check?' which aliases 'check'. This is just to add a m…

…ore clear rubyism to the API. Should not break anything using 'check' since we're not removing it and are simply aliasing it.
  • Loading branch information...
commit e1aa7ce9c0ea84998331cf1dc5a8104ec9c2692a 1 parent 7c5a21c
@hamin hamin authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/hunspell-ffi.rb
View
3  lib/hunspell-ffi.rb
@@ -22,7 +22,8 @@ def initialize(affpath, dicpath)
def spell(word)
C.Hunspell_spell(@handler, word)
end
- alias_method :check, :spell
+ alias_method :check, :spell
+ alias_method :check?, :check
# Returns an array with suggested words or returns and empty array.
def suggest(word)
Please sign in to comment.
Something went wrong with that request. Please try again.