Class: ProcessSip::Context
- Inherits:
-
Object
- Object
- ProcessSip::Context
- Defined in:
- lib/process_sip.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
- #except ⇒ Object
-
#initialize(**options) ⇒ Context
constructor
A new instance of Context.
- #merge(**options) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Context
Returns a new instance of Context.
87 88 89 90 |
# File 'lib/process_sip.rb', line 87 def initialize(**) @options = @arguments = @options.map { ["--#{_1.dasherize}", _2.shellescape].join("=") } end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
91 92 93 |
# File 'lib/process_sip.rb', line 91 def arguments @arguments end |
Instance Method Details
#except ⇒ Object
93 |
# File 'lib/process_sip.rb', line 93 def except(*) = self.class.new(**@options.except(*)) |
#merge(**options) ⇒ Object
94 |
# File 'lib/process_sip.rb', line 94 def merge(**) = self.class.new(**@options, **) |