Class: Ruby::Rego::AST::Package
- Defined in:
- lib/ruby/rego/ast/package.rb
Overview
Represents a package declaration.
Instance Attribute Summary collapse
-
#path ⇒ Array<String>
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(path:, location: nil) ⇒ Package
constructor
A new instance of Package.
Methods inherited from Base
#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s
Constructor Details
#initialize(path:, location: nil) ⇒ Package
Returns a new instance of Package.
12 13 14 15 |
# File 'lib/ruby/rego/ast/package.rb', line 12 def initialize(path:, location: nil) super(location: location) @path = path end |
Instance Attribute Details
#path ⇒ Array<String> (readonly)
18 19 20 |
# File 'lib/ruby/rego/ast/package.rb', line 18 def path @path end |