Skip to content

Commit

Permalink
Merge pull request #630 from ruby/rbs-comment
Browse files Browse the repository at this point in the history
Add RBS comment
  • Loading branch information
soutaro committed Mar 12, 2021
2 parents f973d4e + af4200a commit 095c7b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sig/types.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ module RBS
def self.build: (Symbol) -> Variable
| (Array[Symbol]) -> Array[Variable]

def self.fresh: (?Symbol) -> Variable
# Returns fresh type variable with prefix (if given.)
#
# Variable.fresh(:S) # => S@1
# Variable.fresh(:S) # => S@2
# Variable.fresh() # => T@3
#
def self.fresh: (?Symbol prefix) -> Variable
end

class ClassSingleton
Expand Down

0 comments on commit 095c7b5

Please sign in to comment.