Skip to content

Commit def5322

Browse files
authored
Merge pull request #71 from cmtonkinson/fix-syntax-warning
Fixes #70 - Refactor protected call within method_missing
2 parents 29396cb + 745fe05 commit def5322

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/tree/utils/camel_case_method_handler.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def method_missing(meth, *args, &blk)
5858
end
5959
end
6060

61-
protected
62-
6361
# @!visibility private
6462
# Convert a CamelCasedWord to a underscore separated camel_cased_word.
6563
#
@@ -74,6 +72,7 @@ def to_snake_case(camel_cased_word)
7472
word.downcase!
7573
word
7674
end
75+
protected :to_snake_case
7776

7877
end # self.included
7978
end

0 commit comments

Comments
 (0)