Class: PaloAlto::Union
- Inherits:
-
Object
- Object
- PaloAlto::Union
- Includes:
- Enumerable
- Defined in:
- lib/palo_alto/config.rb
Instance Attribute Summary collapse
-
#expressions ⇒ Object
(also: #arguments)
readonly
Returns the value of attribute expressions.
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #expression ⇒ Object
-
#initialize(*expressions) ⇒ Union
constructor
A new instance of Union.
-
#method_missing(*args) ⇒ Object
rubocop:disable Style/MissingRespondToMissing.
- #to_xpath(type = nil) ⇒ Object
Constructor Details
#initialize(*expressions) ⇒ Union
Returns a new instance of Union.
165 166 167 |
# File 'lib/palo_alto/config.rb', line 165 def initialize(*expressions) @expressions = expressions end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#expressions ⇒ Object (readonly) Also known as: arguments
Returns the value of attribute expressions.
163 164 165 |
# File 'lib/palo_alto/config.rb', line 163 def expressions @expressions end |
Instance Method Details
#each(&block) ⇒ Object
171 172 173 |
# File 'lib/palo_alto/config.rb', line 171 def each(&block) arguments.each(&block) end |
#expression ⇒ Object
168 169 170 |
# File 'lib/palo_alto/config.rb', line 168 def expression :union end |