Class: Yast::ArgRef
- Inherits:
-
Object
- Object
- Yast::ArgRef
- Defined in:
- src/ruby/yast/arg_ref.rb,
src/ruby/yast/builtins.rb
Overview
Provides wrapper to pass by reference any value, even immutable like Fixnum or Symbol. It is used by component system to allow passing by reference.
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(initial = nil) ⇒ ArgRef
constructor
A new instance of ArgRef.
Constructor Details
#initialize(initial = nil) ⇒ ArgRef
Returns a new instance of ArgRef.
15 16 17 |
# File 'src/ruby/yast/arg_ref.rb', line 15 def initialize(initial = nil) @value = initial end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
13 14 15 |
# File 'src/ruby/yast/arg_ref.rb', line 13 def value @value end |