Class: Packwerk::Visibility::Package
- Inherits:
-
T::Struct
- Object
- T::Struct
- Packwerk::Visibility::Package
- Extended by:
- T::Sig
- Defined in:
- lib/packwerk/visibility/package.rb
Class Method Summary collapse
Class Method Details
.from(package) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/packwerk/visibility/package.rb', line 16 def from(package) Package.new( visible_to: package.config['visible_to'] || [], enforce_visibility: package.config['enforce_visibility'] ) end |