Skip to content

Commit

Permalink
replaced :: style module method calls with . style
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Norris committed Jan 18, 2009
1 parent f4eccd1 commit 80ff24d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/lucky_sneaks/unidecoder.rb
Expand Up @@ -48,7 +48,7 @@ module StringExtensions
#
# "⠋⠗⠁⠝⠉⠑".to_ascii #=> "braille"
def to_ascii
LuckySneaks::Unidecoder::decode(self)
LuckySneaks::Unidecoder.decode(self)
end
end
end
6 changes: 3 additions & 3 deletions test/unidecoder_test.rb
Expand Up @@ -50,10 +50,10 @@ class UnidecoderTest < Test::Unit::TestCase

def test_unicode_decode
DONT_CONVERT.each do |ascii|
assert_equal ascii, LuckySneaks::Unidecoder::decode(ascii)
assert_equal ascii, LuckySneaks::Unidecoder.decode(ascii)
end
CONVERT_PAIRS.each do |unicode, ascii|
assert_equal ascii, LuckySneaks::Unidecoder::decode(unicode)
assert_equal ascii, LuckySneaks::Unidecoder.decode(unicode)
end
end

Expand All @@ -73,7 +73,7 @@ def test_unicode_encode
"00e6" => "æ",
"042f" => "Я"
}.each do |codepoint, unicode|
assert_equal unicode, LuckySneaks::Unidecoder::encode(codepoint)
assert_equal unicode, LuckySneaks::Unidecoder.encode(codepoint)
end
end
end

0 comments on commit 80ff24d

Please sign in to comment.