Correct VariableNames doc example

This commit is contained in:
Vitalii Elenhaupt 2018-12-26 10:57:06 +02:00
parent 32ac199162
commit 4e19571fb3
No known key found for this signature in database
GPG Key ID: 7558EF3A4056C706
1 changed files with 3 additions and 11 deletions

View File

@ -4,17 +4,9 @@ module Ameba::Rule::Style
# For example, these variable names are considered valid:
#
# ```
# class Greeting
# @@default_greeting = "Hello world"
#
# def initialize(@custom_greeting = nil)
# end
#
# def print_greeting
# greeting = @custom_greeting || @@default_greeting
# puts greeting
# end
# end
# var_name = 1
# name = 2
# _another_good_name = 3
# ```
#
# And these are invalid method names: