Menu refactoring
Rubocop todo update

diff --git a/.rubocop.yml b/.rubocop.yml
index 3503504..cbc78ee 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,5 +1,5 @@
 inherit_from:
-  - ./rubocop-todo.yml
+  - ./.rubocop_todo.yml

 AllCops:
   Exclude:
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
new file mode 100644
index 0000000..2facf4f
--- /dev/null
+++ b/.rubocop_todo.yml
@@ -0,0 +1,502 @@
+# This configuration was generated by `rubocop --auto-gen-config`
+# on 2014-07-08 23:36:47 +0900 using RuboCop version 0.23.0.
+# The point is for the user to remove these configuration records
+# one by one as the offenses are removed from the code base.
+# Note that changes in the inspected code, or installation of new
+# versions of RuboCop, may require this file to be generated again.
+
+# Offense count: 1
+Lint/AmbiguousOperator:
+  Enabled: true
+
+# Offense count: 57
+# Configuration parameters: AllowSafeAssignment.
+Lint/AssignmentInCondition:
+  Enabled: false
+
+# Offense count: 3
+Lint/BlockAlignment:
+  Enabled: false
+
+# Offense count: 1
+Lint/EmptyEnsure:
+  Enabled: false
+
+# Offense count: 1
+# Configuration parameters: AlignWith, SupportedStyles.
+Lint/EndAlignment:
+  Enabled: false
+
+# Offense count: 3
+Lint/Eval:
+  Enabled: false
+
+# Offense count: 5
+Lint/HandleExceptions:
+  Enabled: false
+
+# Offense count: 50
+Lint/LiteralInCondition:
+  Enabled: false
+
+# Offense count: 1
+Lint/Loop:
+  Enabled: false
+
+# Offense count: 1
+Lint/ParenthesesAsGroupedExpression:
+  Enabled: false
+
+# Offense count: 28
+Lint/ShadowingOuterLocalVariable:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Lint/StringConversionInInterpolation:
+  Enabled: false
+
+# Offense count: 36
+Lint/UnderscorePrefixedVariableName:
+  Enabled: false
+
+# Offense count: 33
+# Cop supports --auto-correct.
+Lint/UnusedBlockArgument:
+  Enabled: false
+
+# Offense count: 25
+# Cop supports --auto-correct.
+Lint/UnusedMethodArgument:
+  Enabled: false
+
+# Offense count: 1
+Lint/UselessAccessModifier:
+  Enabled: false
+
+# Offense count: 32
+Lint/UselessAssignment:
+  Enabled: false
+
+# Offense count: 5
+Lint/UselessComparison:
+  Enabled: false
+
+# Offense count: 98
+Lint/Void:
+  Enabled: false
+
+# Offense count: 13
+Style/AccessorMethodName:
+  Enabled: false
+
+# Offense count: 16
+# Cop supports --auto-correct.
+Style/Alias:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+Style/AlignArray:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
+Style/AlignHash:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/AlignParameters:
+  Enabled: false
+
+# Offense count: 10
+# Cop supports --auto-correct.
+Style/AndOr:
+  Enabled: false
+
+# Offense count: 1
+Style/ArrayJoin:
+  Enabled: false
+
+# Offense count: 2131
+Style/AsciiComments:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Style/BlockComments:
+  Enabled: false
+
+# Offense count: 36
+Style/BlockNesting:
+  Max: 6
+
+# Offense count: 188
+# Cop supports --auto-correct.
+Style/Blocks:
+  Enabled: false
+
+# Offense count: 7
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/BracesAroundHashParameters:
+  Enabled: false
+
+# Offense count: 3
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/ClassAndModuleChildren:
+  Enabled: false
+
+# Offense count: 15
+# Configuration parameters: CountComments.
+Style/ClassLength:
+  Max: 702
+
+# Offense count: 3
+# Cop supports --auto-correct.
+Style/ClassMethods:
+  Enabled: false
+
+# Offense count: 136
+# Cop supports --auto-correct.
+# Configuration parameters: PreferredMethods.
+Style/CollectionMethods:
+  Enabled: false
+
+# Offense count: 3
+# Cop supports --auto-correct.
+Style/ColonMethodCall:
+  Enabled: false
+
+# Offense count: 1
+# Configuration parameters: Keywords.
+Style/CommentAnnotation:
+  Enabled: false
+
+# Offense count: 5
+# Cop supports --auto-correct.
+Style/CommentIndentation:
+  Enabled: false
+
+# Offense count: 23
+Style/ConstantName:
+  Enabled: false
+
+# Offense count: 50
+Style/CyclomaticComplexity:
+  Max: 77
+
+# Offense count: 570
+Style/Documentation:
+  Enabled: false
+
+# Offense count: 2
+Style/DoubleNegation:
+  Enabled: false
+
+# Offense count: 34
+# Cop supports --auto-correct.
+# Configuration parameters: AllowAdjacentOneLineDefs.
+Style/EmptyLineBetweenDefs:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Style/EmptyLines:
+  Enabled: false
+
+# Offense count: 4
+Style/EmptyLinesAroundAccessModifier:
+  Enabled: false
+
+# Offense count: 24
+# Cop supports --auto-correct.
+Style/EmptyLinesAroundBody:
+  Enabled: false
+
+# Offense count: 98
+# Configuration parameters: Exclude.
+Style/FileName:
+  Enabled: false
+
+# Offense count: 1
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/For:
+  Enabled: false
+
+# Offense count: 11
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/FormatString:
+  Enabled: false
+
+# Offense count: 171
+# Configuration parameters: MinBodyLength.
+Style/GuardClause:
+  Enabled: false
+
+# Offense count: 5786
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/HashSyntax:
+  Enabled: false
+
+# Offense count: 295
+# Configuration parameters: MaxLineLength.
+Style/IfUnlessModifier:
+  Enabled: false
+
+# Offense count: 18
+# Cop supports --auto-correct.
+Style/IndentArray:
+  Enabled: false
+
+# Offense count: 13
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/IndentHash:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+Style/IndentationConsistency:
+  Enabled: false
+
+# Offense count: 2
+# Cop supports --auto-correct.
+Style/IndentationWidth:
+  Enabled: false
+
+# Offense count: 4
+Style/Lambda:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/LambdaCall:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+Style/LineEndConcatenation:
+  Enabled: false
+
+# Offense count: 1128
+Style/LineLength:
+  Max: 8233
+
+# Offense count: 2
+# Cop supports --auto-correct.
+Style/MethodCallParentheses:
+  Enabled: false
+
+# Offense count: 173
+# Configuration parameters: CountComments.
+Style/MethodLength:
+  Max: 249
+
+# Offense count: 13
+Style/ModuleFunction:
+  Enabled: false
+
+# Offense count: 1
+Style/MultilineIfThen:
+  Enabled: false
+
+# Offense count: 2
+# Cop supports --auto-correct.
+Style/NegatedIf:
+  Enabled: false
+
+# Offense count: 35
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/Next:
+  Enabled: false
+
+# Offense count: 7
+# Cop supports --auto-correct.
+Style/NilComparison:
+  Enabled: false
+
+# Offense count: 27
+# Cop supports --auto-correct.
+Style/NumericLiterals:
+  MinDigits: 7
+
+# Offense count: 7
+# Configuration parameters: CountKeywordArgs.
+Style/ParameterLists:
+  Max: 14
+
+# Offense count: 4
+# Cop supports --auto-correct.
+# Configuration parameters: AllowSafeAssignment.
+Style/ParenthesesAroundCondition:
+  Enabled: false
+
+# Offense count: 97
+# Cop supports --auto-correct.
+# Configuration parameters: PreferredDelimiters.
+Style/PercentLiteralDelimiters:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Style/PerlBackrefs:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Style/RedundantBegin:
+  Enabled: false
+
+# Offense count: 15
+# Cop supports --auto-correct.
+Style/RedundantSelf:
+  Enabled: false
+
+# Offense count: 3
+# Configuration parameters: MaxSlashes.
+Style/RegexpLiteral:
+  Enabled: false
+
+# Offense count: 1
+Style/SelfAssignment:
+  Enabled: false
+
+# Offense count: 19
+# Cop supports --auto-correct.
+# Configuration parameters: AllowAsExpressionSeparator.
+Style/Semicolon:
+  Enabled: false
+
+# Offense count: 44
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/SignalException:
+  Enabled: false
+
+# Offense count: 2
+# Configuration parameters: Methods.
+Style/SingleLineBlockParams:
+  Enabled: false
+
+# Offense count: 38
+# Cop supports --auto-correct.
+# Configuration parameters: AllowIfMethodIsEmpty.
+Style/SingleLineMethods:
+  Enabled: false
+
+# Offense count: 137
+# Cop supports --auto-correct.
+Style/SpaceAfterComma:
+  Enabled: false
+
+# Offense count: 20
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/SpaceAroundEqualsInParameterDefault:
+  Enabled: false
+
+# Offense count: 245
+# Cop supports --auto-correct.
+Style/SpaceAroundOperators:
+  Enabled: false
+
+# Offense count: 247
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/SpaceBeforeBlockBraces:
+  Enabled: false
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Style/SpaceBeforeComment:
+  Enabled: false
+
+# Offense count: 526
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
+Style/SpaceInsideBlockBraces:
+  Enabled: false
+
+# Offense count: 63
+# Cop supports --auto-correct.
+Style/SpaceInsideBrackets:
+  Enabled: false
+
+# Offense count: 1223
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
+Style/SpaceInsideHashLiteralBraces:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+Style/SpaceInsideParens:
+  Enabled: false
+
+# Offense count: 101
+# Cop supports --auto-correct.
+Style/SpecialGlobalVars:
+  Enabled: false
+
+# Offense count: 4109
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/StringLiterals:
+  Enabled: false
+
+# Offense count: 6
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/TrailingBlankLines:
+  Enabled: false
+
+# Offense count: 314
+# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
+Style/TrailingComma:
+  Enabled: false
+
+# Offense count: 8
+# Cop supports --auto-correct.
+Style/TrailingWhitespace:
+  Enabled: false
+
+# Offense count: 5
+# Cop supports --auto-correct.
+# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
+Style/TrivialAccessors:
+  Enabled: false
+
+# Offense count: 2
+Style/UnlessElse:
+  Enabled: false
+
+# Offense count: 68
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+Style/VariableName:
+  Enabled: false
+
+# Offense count: 4
+# Cop supports --auto-correct.
+Style/WhenThen:
+  Enabled: false
+
+# Offense count: 2
+# Cop supports --auto-correct.
+Style/WhileUntilDo:
+  Enabled: false
+
+# Offense count: 1
+# Configuration parameters: MaxLineLength.
+Style/WhileUntilModifier:
+  Enabled: false
+
+# Offense count: 5
+# Cop supports --auto-correct.
+Style/WordArray:
+  MinSize: 30
diff --git a/rubocop-todo.yml b/rubocop-todo.yml
deleted file mode 100644
index 6b1ce39..0000000
--- a/rubocop-todo.yml
+++ /dev/null
@@ -1,469 +0,0 @@
-# This configuration was generated by `rubocop --auto-gen-config`
-# on 2014-05-09 23:48:09 +0900 using RuboCop version 0.21.0.
-# The point is for the user to remove these configuration records
-# one by one as the offenses are removed from the code base.
-# Note that changes in the inspected code, or installation of new
-# versions of RuboCop, may require this file to be generated again.
-
-# Offense count: 13
-AccessorMethodName:
-  Enabled: false
-
-# Offense count: 15
-# Cop supports --auto-correct.
-Alias:
-  Enabled: false
-
-# Offense count: 4
-# Cop supports --auto-correct.
-AlignArray:
-  Enabled: false
-
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
-AlignHash:
-  Enabled: false
-
-# Offense count: 4
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-AlignParameters:
-  Enabled: false
-
-# Offense count: 1
-AmbiguousOperator:
-  Enabled: false
-
-# Offense count: 8
-# Cop supports --auto-correct.
-AndOr:
-  Enabled: false
-
-# Offense count: 1
-ArrayJoin:
-  Enabled: false
-
-# Offense count: 2051
-AsciiComments:
-  Enabled: false
-
-# Offense count: 53
-# Configuration parameters: AllowSafeAssignment.
-AssignmentInCondition:
-  Enabled: false
-
-# Offense count: 2
-BlockAlignment:
-  Enabled: false
-
-# Offense count: 1
-BlockComments:
-  Enabled: false
-
-# Offense count: 29
-BlockNesting:
-  Max: 6
-
-# Offense count: 155
-# Cop supports --auto-correct.
-Blocks:
-  Enabled: false
-
-# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-BracesAroundHashParameters:
-  Enabled: false
-
-# Offense count: 3
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-ClassAndModuleChildren:
-  Enabled: false
-
-# Offense count: 13
-# Configuration parameters: CountComments.
-ClassLength:
-  Max: 700
-
-# Offense count: 3
-# Cop supports --auto-correct.
-ClassMethods:
-  Enabled: false
-
-# Offense count: 117
-# Cop supports --auto-correct.
-# Configuration parameters: PreferredMethods.
-CollectionMethods:
-  Enabled: false
-
-# Offense count: 3
-# Cop supports --auto-correct.
-ColonMethodCall:
-  Enabled: false
-
-# Offense count: 1
-# Configuration parameters: Keywords.
-CommentAnnotation:
-  Enabled: false
-
-# Offense count: 23
-ConstantName:
-  Enabled: false
-
-# Offense count: 44
-CyclomaticComplexity:
-  Max: 77
-
-# Offense count: 542
-Documentation:
-  Enabled: false
-
-# Offense count: 2
-DoubleNegation:
-  Enabled: false
-
-# Offense count: 1
-EmptyEnsure:
-  Enabled: false
-
-# Offense count: 34
-# Cop supports --auto-correct.
-# Configuration parameters: AllowAdjacentOneLineDefs.
-EmptyLineBetweenDefs:
-  Enabled: false
-
-# Offense count: 2
-EmptyLinesAroundAccessModifier:
-  Enabled: false
-
-# Offense count: 24
-# Cop supports --auto-correct.
-EmptyLinesAroundBody:
-  Enabled: false
-
-# Offense count: 1
-# Configuration parameters: AlignWith, SupportedStyles.
-EndAlignment:
-  Enabled: false
-
-# Offense count: 3
-Eval:
-  Enabled: false
-
-# Offense count: 98
-# Configuration parameters: Exclude.
-FileName:
-  Enabled: false
-
-# Offense count: 1
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-For:
-  Enabled: false
-
-# Offense count: 9
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-FormatString:
-  Enabled: false
-
-# Offense count: 4
-HandleExceptions:
-  Enabled: false
-
-# Offense count: 4090
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-HashSyntax:
-  Enabled: false
-
-# Offense count: 250
-# Configuration parameters: MaxLineLength.
-IfUnlessModifier:
-  Enabled: false
-
-# Offense count: 9
-# Cop supports --auto-correct.
-IndentArray:
-  Enabled: false
-
-# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-IndentHash:
-  Enabled: false
-
-# Offense count: 2
-# Cop supports --auto-correct.
-IndentationConsistency:
-  Enabled: false
-
-# Offense count: 3
-# Cop supports --auto-correct.
-IndentationWidth:
-  Enabled: false
-
-# Offense count: 3
-Lambda:
-  Enabled: false
-
-# Offense count: 4
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-LambdaCall:
-  Enabled: false
-
-# Offense count: 1
-# Cop supports --auto-correct.
-LineEndConcatenation:
-  Enabled: false
-
-# Offense count: 783
-LineLength:
-  Max: 8233
-
-# Offense count: 47
-LiteralInCondition:
-  Enabled: false
-
-# Offense count: 1
-Loop:
-  Enabled: false
-
-# Offense count: 1
-# Cop supports --auto-correct.
-MethodCallParentheses:
-  Enabled: false
-
-# Offense count: 165
-# Configuration parameters: CountComments.
-MethodLength:
-  Max: 249
-
-# Offense count: 13
-ModuleFunction:
-  Enabled: false
-
-# Offense count: 1
-MultilineIfThen:
-  Enabled: false
-
-# Offense count: 2
-# Cop supports --auto-correct.
-NegatedIf:
-  Enabled: false
-
-# Offense count: 7
-# Cop supports --auto-correct.
-NilComparison:
-  Enabled: false
-
-# Offense count: 14
-# Cop supports --auto-correct.
-NonNilCheck:
-  Enabled: false
-
-# Offense count: 23
-# Cop supports --auto-correct.
-NumericLiterals:
-  MinDigits: 7
-
-# Offense count: 4
-# Configuration parameters: CountKeywordArgs.
-ParameterLists:
-  Max: 6
-
-# Offense count: 4
-# Cop supports --auto-correct.
-# Configuration parameters: AllowSafeAssignment.
-ParenthesesAroundCondition:
-  Enabled: false
-
-# Offense count: 1
-ParenthesesAsGroupedExpression:
-  Enabled: false
-
-# Offense count: 254
-# Cop supports --auto-correct.
-# Configuration parameters: PreferredDelimiters.
-PercentLiteralDelimiters:
-  Enabled: false
-
-# Offense count: 1
-# Cop supports --auto-correct.
-PerlBackrefs:
-  Enabled: false
-
-# Offense count: 1
-# Cop supports --auto-correct.
-RedundantBegin:
-  Enabled: false
-
-# Offense count: 14
-# Cop supports --auto-correct.
-RedundantSelf:
-  Enabled: false
-
-# Offense count: 3
-# Configuration parameters: MaxSlashes.
-RegexpLiteral:
-  Enabled: false
-
-# Offense count: 1
-SelfAssignment:
-  Enabled: false
-
-# Offense count: 19
-# Cop supports --auto-correct.
-# Configuration parameters: AllowAsExpressionSeparator.
-Semicolon:
-  Enabled: false
-
-# Offense count: 29
-ShadowingOuterLocalVariable:
-  Enabled: false
-
-# Offense count: 33
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-SignalException:
-  Enabled: false
-
-# Offense count: 38
-# Cop supports --auto-correct.
-# Configuration parameters: AllowIfMethodIsEmpty.
-SingleLineMethods:
-  Enabled: false
-
-# Offense count: 140
-# Cop supports --auto-correct.
-SpaceAfterComma:
-  Enabled: false
-
-# Offense count: 24
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-SpaceAroundEqualsInParameterDefault:
-  Enabled: false
-
-# Offense count: 256
-# Cop supports --auto-correct.
-SpaceAroundOperators:
-  Enabled: false
-
-# Offense count: 222
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-SpaceBeforeBlockBraces:
-  Enabled: false
-
-# Offense count: 468
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
-SpaceInsideBlockBraces:
-  Enabled: false
-
-# Offense count: 63
-# Cop supports --auto-correct.
-SpaceInsideBrackets:
-  Enabled: false
-
-# Offense count: 437
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
-SpaceInsideHashLiteralBraces:
-  Enabled: false
-
-# Offense count: 4
-# Cop supports --auto-correct.
-SpaceInsideParens:
-  Enabled: false
-
-# Offense count: 99
-# Cop supports --auto-correct.
-SpecialGlobalVars:
-  Enabled: false
-
-# Offense count: 1
-# Cop supports --auto-correct.
-StringConversionInInterpolation:
-  Enabled: false
-
-# Offense count: 3610
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-StringLiterals:
-  Enabled: false
-
-# Offense count: 5
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-TrailingBlankLines:
-  Enabled: false
-
-# Offense count: 298
-# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
-TrailingComma:
-  Enabled: false
-
-# Offense count: 8
-# Cop supports --auto-correct.
-TrailingWhitespace:
-  Enabled: false
-
-# Offense count: 5
-# Cop supports --auto-correct.
-# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
-TrivialAccessors:
-  Enabled: false
-
-# Offense count: 40
-UnderscorePrefixedVariableName:
-  Enabled: false
-
-# Offense count: 2
-UnlessElse:
-  Enabled: false
-
-# Offense count: 36
-UnusedBlockArgument:
-  Enabled: false
-
-# Offense count: 26
-UnusedMethodArgument:
-  Enabled: false
-
-# Offense count: 1
-UselessAccessModifier:
-  Enabled: false
-
-# Offense count: 33
-UselessAssignment:
-  Enabled: false
-
-# Offense count: 5
-UselessComparison:
-  Enabled: false
-
-# Offense count: 68
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-VariableName:
-  Enabled: false
-
-# Offense count: 97
-Void:
-  Enabled: false
-
-# Offense count: 4
-# Cop supports --auto-correct.
-WhenThen:
-  Enabled: false
-
-# Offense count: 2
-# Cop supports --auto-correct.
-WhileUntilDo:
-  Enabled: false
-
-# Offense count: 5
-# Cop supports --auto-correct.
-WordArray:
-  MinSize: 30
Rubocop refactoring 1
Config bugfix
Rubocop refactoring 2
Rubocop refactoring 3
rubocop refactoring

diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index b1681b0..938ab08 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -29,7 +29,7 @@ Lint/ShadowingOuterLocalVariable:
 # Offense count: 1
 # Cop supports --auto-correct.
 Lint/StringConversionInInterpolation:
-  Enabled: false
+  Enabled: true

 # Offense count: 36
 Lint/UnderscorePrefixedVariableName:
@@ -38,7 +38,7 @@ Lint/UnderscorePrefixedVariableName:
 # Offense count: 32
 # Cop supports --auto-correct.
 Lint/UnusedBlockArgument:
-  Enabled: false
+  Enabled: true

 # Offense count: 25
 # Cop supports --auto-correct.
@@ -81,7 +81,7 @@ Style/AlignHash:
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, SupportedStyles.
 Style/AlignParameters:
-  Enabled: false
+  Enabled: true

 # Offense count: 10
 # Cop supports --auto-correct.
@@ -110,7 +110,7 @@ Style/BracesAroundHashParameters:
 # Offense count: 1
 # Configuration parameters: EnforcedStyle, SupportedStyles.
 Style/ClassAndModuleChildren:
-  Enabled: false
+  Enabled: true

 # Offense count: 15
 # Configuration parameters: CountComments.
@@ -120,7 +120,7 @@ Style/ClassLength:
 # Offense count: 3
 # Cop supports --auto-correct.
 Style/ClassMethods:
-  Enabled: false
+  Enabled: true

 # Offense count: 136
 # Cop supports --auto-correct.
@@ -131,7 +131,7 @@ Style/CollectionMethods:
 # Offense count: 4
 # Cop supports --auto-correct.
 Style/CommentIndentation:
-  Enabled: false
+  Enabled: true

 # Offense count: 23
 Style/ConstantName:
@@ -205,7 +205,7 @@ Style/IndentHash:
 # Offense count: 2
 # Cop supports --auto-correct.
 Style/IndentationConsistency:
-  Enabled: false
+  Enabled: true

 # Offense count: 2
 # Cop supports --auto-correct.
@@ -219,7 +219,7 @@ Style/Lambda:
 # Offense count: 4
 # Cop supports --auto-correct.
 Style/LineEndConcatenation:
-  Enabled: false
+  Enabled: true

 # Offense count: 1124
 Style/LineLength:
@@ -236,7 +236,7 @@ Style/ModuleFunction:

 # Offense count: 1
 Style/MultilineIfThen:
-  Enabled: false
+  Enabled: true

 # Offense count: 34
 # Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -257,7 +257,7 @@ Style/ParameterLists:
 # Cop supports --auto-correct.
 # Configuration parameters: AllowSafeAssignment.
 Style/ParenthesesAroundCondition:
-  Enabled: false
+  Enabled: true

 # Offense count: 97
 # Cop supports --auto-correct.
@@ -278,7 +278,7 @@ Style/RedundantSelf:
 # Offense count: 3
 # Configuration parameters: MaxSlashes.
 Style/RegexpLiteral:
-  Enabled: false
+  Enabled: true

 # Offense count: 19
 # Cop supports --auto-correct.
@@ -362,7 +362,7 @@ Style/StringLiterals:
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, SupportedStyles.
 Style/TrailingBlankLines:
-  Enabled: false
+  Enabled: true

 # Offense count: 315
 # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
diff --git a/lib/stylet/callbacks.rb b/lib/stylet/callbacks.rb
index 779bab7..3183809 100644
--- a/lib/stylet/callbacks.rb
+++ b/lib/stylet/callbacks.rb
@@ -44,10 +44,12 @@ def main_loop(&block)
   Stylet::Base.run

   # 方法2
-  class Stylet::Base
-    setup { @b = "B" }
-    update { vputs @b }
-    run
+  module Stylet
+    class Base
+      setup { @b = "B" }
+      update { vputs @b }
+      run
+    end
   end

   # 方法3 (他の方法のあとに呼ぶとだめなのはなぜ？)
wav 44100 22050 11025 統一
Examples 背景画像表示 追加
examples renum
update .rubocop_todo.yml
ruby forwardable → active_support delegation
Gemfile rubocop は github から