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

View file

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