Skip to content

Commit

Permalink
Use optional parameter rbs type
Browse files Browse the repository at this point in the history
  • Loading branch information
nevinera committed Nov 20, 2023
1 parent d642a57 commit eb74ced
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sig/environment_helpers.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ module EnvironmentHelpers

module AccessHelpers
# (Actually provided by ENV, which these are all extended onto)
def fetch: (String name) -> String?
| (String name, String? default) -> String?
def fetch: (String name, ?String? default) -> String?

private def fetch_value: (String name, required: bool) -> String?
private def check_default_type: (String | Symbol context, untyped value, *Class types) -> void
Expand Down

0 comments on commit eb74ced

Please sign in to comment.