Class: Metasploit::Yard::Aruba::RvmEnv::Variable
- Inherits:
-
Object
- Object
- Metasploit::Yard::Aruba::RvmEnv::Variable
- Defined in:
- lib/metasploit/yard/aruba/rvm_env/variable.rb
Overview
An environment variable in rvm env
.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of variable being manipulated in
rvm env
.
Instance Method Summary collapse
-
#==(other) ⇒ true, false
This variable is the same class and has the same #name as
other
. -
#initialize(attributes = {}) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(attributes = {}) ⇒ Variable
Returns a new instance of Variable.
19 20 21 22 23 |
# File 'lib/metasploit/yard/aruba/rvm_env/variable.rb', line 19 def initialize(attributes={}) attributes.assert_valid_keys(:name) @name = attributes[:name] end |
Instance Attribute Details
#name ⇒ String
The name of variable being manipulated in rvm env
11 12 13 |
# File 'lib/metasploit/yard/aruba/rvm_env/variable.rb', line 11 def name @name end |
Instance Method Details
#==(other) ⇒ true, false
This variable is the same class and has the same #name as other
.
29 30 31 |
# File 'lib/metasploit/yard/aruba/rvm_env/variable.rb', line 29 def ==(other) other.class == self.class && other.name == self.name end |