sig/comment.rbs in rbs-1.6.2 vs sig/comment.rbs in rbs-1.7.0.beta.1
- old
+ new
@@ -1,26 +1,26 @@
module RBS
module AST
# RBS allows writing documentation of declarations and members.
#
- # # This is a doc for class.
- # class Hello
- # end
+ # ```
+ # # This is a doc for class.
+ # class Hello
+ # end
+ # ```
#
class Comment
attr_reader string: String
- attr_reader location: Location?
+ attr_reader location: Location[bot, bot]?
- def initialize: (string: String, location: Location?) -> void
+ def initialize: (string: String, location: Location[bot, bot]?) -> void
def ==: (untyped other) -> bool
alias eql? ==
def hash: () -> Integer
include _ToJson
-
- def concat: (string: String, location: Location?) -> self
end
end
end