Class: Gargor::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/gargor/parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject

Returns the value of attribute file.



4
5
6
# File 'lib/gargor/parameter.rb', line 4

def file
  @file
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/gargor/parameter.rb', line 4

def name
  @name
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/gargor/parameter.rb', line 4

def path
  @path
end

#valueObject

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

#eqlObject



8
# File 'lib/gargor/parameter.rb', line 8

alias_method :eql, :==

#to_sObject



13
14
15
# File 'lib/gargor/parameter.rb', line 13

def to_s
  @value.to_s
end