Strict whitespace format, make private fields final that can be immutable

This commit is contained in:
atomicint committed 2015-04-08 16:40:15 -04:00
1 parent 08ffdf9f41
commit 433d4c359a
540 files changed
+1905 -1908

No files matched your search

+9 -10
View File
@@ -177,16 +177,15 @@ def on_message(args, proc)
numbers = [ 'first', 'second', 'third', 'fourth', 'fifth' ]
message = args[0]; option = 0
# TODO
# numbers.each_index do |index|
# number = numbers[index]
#
# if message.to_s.start_with?(number)
# option = index + 1
# message = message[number.length + 1, message.length].to_sym
# break
# end
# end
numbers.each_index do |index|
number = numbers[index]
if message.to_s.start_with?(number)
option = index + 1
message = message[number.length + 1, message.length].to_sym
break
end
end
class_name = message.to_s.camelize.concat('Message')