Merge pull request #21674 from amitsuroliya/comment_fix
Replace `#=>` with `# =>` [ci skip]
This commit is contained in:
commit
0c39a022b0
@ -10,8 +10,8 @@ module SecureRandom
|
|||||||
#
|
#
|
||||||
# The result may contain alphanumeric characters except 0, O, I and l
|
# The result may contain alphanumeric characters except 0, O, I and l
|
||||||
#
|
#
|
||||||
# p SecureRandom.base58 #=> "4kUgL2pdQMSCQtjE"
|
# p SecureRandom.base58 # => "4kUgL2pdQMSCQtjE"
|
||||||
# p SecureRandom.base58(24) #=> "77TMHrHJFvFDwodq8w7Ev2m7"
|
# p SecureRandom.base58(24) # => "77TMHrHJFvFDwodq8w7Ev2m7"
|
||||||
#
|
#
|
||||||
def self.base58(n = 16)
|
def self.base58(n = 16)
|
||||||
SecureRandom.random_bytes(n).unpack("C*").map do |byte|
|
SecureRandom.random_bytes(n).unpack("C*").map do |byte|
|
||||||
|
@ -242,7 +242,7 @@ end
|
|||||||
|
|
||||||
>> person = Person.new
|
>> person = Person.new
|
||||||
>> person.valid?
|
>> person.valid?
|
||||||
>> person.errors.details[:name] #=> [{error: :blank}]
|
>> person.errors.details[:name] # => [{error: :blank}]
|
||||||
```
|
```
|
||||||
|
|
||||||
Using `details` with custom validators is covered in the [Working with
|
Using `details` with custom validators is covered in the [Working with
|
||||||
|
@ -239,7 +239,7 @@ You can quickly test the RDoc output with the following command:
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ echo "+:to_param+" | rdoc --pipe
|
$ echo "+:to_param+" | rdoc --pipe
|
||||||
#=> <p><code>:to_param</code></p>
|
# => <p><code>:to_param</code></p>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Regular Font
|
### Regular Font
|
||||||
|
Loading…
Reference in New Issue
Block a user