Add Array#fourth to resolve cask errors
This commit is contained in:
parent
c02520f604
commit
79e2379d98
@ -12,6 +12,11 @@ class Array
|
||||
# %w( a b c d e ).third # => "c"
|
||||
def third = self[2]
|
||||
|
||||
# Equal to <tt>self[3]</tt>.
|
||||
#
|
||||
# %w( a b c d e ).fourth # => "d"
|
||||
def fourth = self[3]
|
||||
|
||||
# Converts the array to a comma-separated sentence where the last element is
|
||||
# joined by the connector word.
|
||||
#
|
||||
|
||||
@ -6,4 +6,7 @@ class Array
|
||||
|
||||
sig { returns(T.nilable(Elem)) }
|
||||
def third; end
|
||||
|
||||
sig { returns(T.nilable(Elem)) }
|
||||
def fourth; end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user