We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebced97 commit bf753a1Copy full SHA for bf753a1
1 file changed
lib/prism/translation/ruby_parser.rb
@@ -1624,11 +1624,13 @@ def visit_write_value(node)
1624
end
1625
1626
1627
- attr_accessor :scopes # :nodoc:
+ # Optional scopes to pass to the parser.
1628
+ attr_reader :scopes #: Array[Array[Symbol]]?
1629
- def initialize scopes:nil # :nodoc:
1630
+ #: (?scopes: Array[Array[Symbol]]?) -> void
1631
+ def initialize(scopes: nil)
1632
super()
- self.scopes = [scopes] if scopes
1633
+ @scopes = scopes
1634
1635
1636
# Parse the given source and translate it into the seattlerb/ruby_parser
0 commit comments