lib/motion-kit/util.rb in motion-kit-0.13.0 vs lib/motion-kit/util.rb in motion-kit-0.14.0

- old
+ new

@@ -8,10 +8,14 @@ def camel_case(str) str.split('_').map(&:capitalize).join end def setter(method_name) - "set#{method_name[0].capitalize}#{method_name[1..-1]}:" + setter = "set#{method_name[0].capitalize}#{method_name[1..-1]}" + unless setter.end_with?(':') + setter << ':' + end + setter end def appearance_class @appearance_class ||= Class.new end