Class: Hitman::Param
- Inherits:
-
Object
- Object
- Hitman::Param
- Defined in:
- lib/hitman/param.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Param
constructor
A new instance of Param.
- #to_s ⇒ Object
Constructor Details
#initialize(name, type) ⇒ Param
Returns a new instance of Param.
5 6 7 8 |
# File 'lib/hitman/param.rb', line 5 def initialize(name, type) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/hitman/param.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/hitman/param.rb', line 3 def type @type end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/hitman/param.rb', line 10 def to_s "#{name}: #{type}" end |