Class: Gargor::Parameter
- Inherits:
-
Object
- Object
- Gargor::Parameter
- Defined in:
- lib/gargor/parameter.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql ⇒ Object
-
#initialize(name) ⇒ Parameter
constructor
A new instance of Parameter.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Parameter
Returns a new instance of Parameter.
9 10 11 |
# File 'lib/gargor/parameter.rb', line 9 def initialize name @name = name end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'lib/gargor/parameter.rb', line 4 def file @file end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/gargor/parameter.rb', line 4 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/gargor/parameter.rb', line 4 def path @path end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/gargor/parameter.rb', line 4 def value @value end |
Instance Method Details
#==(other) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/gargor/parameter.rb', line 17 def ==(other) name == other.name and file == other.file and path == other.path and value == other.value end |
#eql ⇒ Object
8 |
# File 'lib/gargor/parameter.rb', line 8 alias_method :eql, :== |
#to_s ⇒ Object
13 14 15 |
# File 'lib/gargor/parameter.rb', line 13 def to_s @value.to_s end |