Class: Attr Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Parlour type signature generator plugin for Homebrew DSL attributes.
Instance Method Summary collapse
- #generate(root) ⇒ void private
- #strictness ⇒ String? private
Instance Method Details
#generate(root) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This method returns an undefined value.
7 8 9 10 11 12 13 |
# File 'sorbet/parlour/attr.rb', line 7 def generate(root) tree = T.let([], T::Array[T.untyped]) Homebrew::Parlour.ast_list.each do |node| tree += find_custom_attr(node) end process_custom_attr(tree, root) end |
#strictness ⇒ String?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
16 17 18 |
# File 'sorbet/parlour/attr.rb', line 16 def strictness "strict" end |