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

This commit is contained in:
atomicint
2015-04-08 16:40:15 -04:00
parent 08ffdf9f41
commit 433d4c359a
540 changed files with 1905 additions and 1908 deletions
+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')