Skip to content

Commit ff4dafa

Browse files
committed
Update comments
1 parent a67609c commit ff4dafa

File tree

2 files changed

+9
-33
lines changed

2 files changed

+9
-33
lines changed

core/thread.rbs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -367,20 +367,16 @@ class Thread < Object
367367
# - Thread.new { ... } -> thread
368368
# - Thread.new(*args, &proc) -> thread
369369
# - Thread.new(*args) { |args| ... } -> thread
370+
# - Creates a new thread executing the given block.
371+
# - Any +args+ given to ::new will be passed to the block:
372+
# - arr = []
373+
# - a, b, c = 1, 2, 3
374+
# - Thread.new(a,b,c) { |d,e,f| arr << d << e << f }.join
375+
# - arr #=> [1, 2, 3]
376+
# - A ThreadError exception is raised if ::new is called without a block.
377+
# - If you're going to subclass Thread, be sure to call super in your
378+
# - +initialize+ method, otherwise a ThreadError will be raised.
370379
# -->
371-
# Creates a new thread executing the given block.
372-
#
373-
# Any `args` given to ::new will be passed to the block:
374-
#
375-
# arr = []
376-
# a, b, c = 1, 2, 3
377-
# Thread.new(a,b,c) { |d,e,f| arr << d << e << f }.join
378-
# arr #=> [1, 2, 3]
379-
#
380-
# A ThreadError exception is raised if ::new is called without a block.
381-
#
382-
# If you're going to subclass Thread, be sure to call super in your `initialize`
383-
# method, otherwise a ThreadError will be raised.
384380
#
385381
def initialize: (*untyped) { (?) -> void } -> void
386382

stdlib/openssl/0/openssl.rbs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9524,49 +9524,29 @@ module OpenSSL
95249524
# of both is present, a TimestampError will be raised when trying to create a
95259525
# Response.
95269526
#
9527-
# call-seq:
9528-
# factory.default_policy_id = "string" -> string
9529-
# factory.default_policy_id -> string or nil
9530-
#
95319527
# ### serial_number
95329528
#
95339529
# Sets or retrieves the serial number to be used for timestamp creation. Must be
95349530
# present for timestamp creation.
95359531
#
9536-
# call-seq:
9537-
# factory.serial_number = number -> number
9538-
# factory.serial_number -> number or nil
9539-
#
95409532
# ### gen_time
95419533
#
95429534
# Sets or retrieves the Time value to be used in the Response. Must be present
95439535
# for timestamp creation.
95449536
#
9545-
# call-seq:
9546-
# factory.gen_time = Time -> Time
9547-
# factory.gen_time -> Time or nil
9548-
#
95499537
# ### additional_certs
95509538
#
95519539
# Sets or retrieves additional certificates apart from the timestamp certificate
95529540
# (e.g. intermediate certificates) to be added to the Response. Must be an Array
95539541
# of OpenSSL::X509::Certificate.
95549542
#
9555-
# call-seq:
9556-
# factory.additional_certs = [cert1, cert2] -> [ cert1, cert2 ]
9557-
# factory.additional_certs -> array or nil
9558-
#
95599543
# ### allowed_digests
95609544
#
95619545
# Sets or retrieves the digest algorithms that the factory is allowed create
95629546
# timestamps for. Known vulnerable or weak algorithms should not be allowed
95639547
# where possible. Must be an Array of String or OpenSSL::Digest subclass
95649548
# instances.
95659549
#
9566-
# call-seq:
9567-
# factory.allowed_digests = ["sha1", OpenSSL::Digest.new('SHA256').new] -> [ "sha1", OpenSSL::Digest) ]
9568-
# factory.allowed_digests -> array or nil
9569-
#
95709550
class Factory
95719551
def additional_certs: () -> Array[X509::Certificate]?
95729552

0 commit comments

Comments
 (0)