Class: Hitman::Param

Inherits:
Object
  • Object
show all
Defined in:
lib/hitman/param.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/hitman/param.rb', line 3

def name
  @name
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/hitman/param.rb', line 3

def type
  @type
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/hitman/param.rb', line 10

def to_s
  "#{name}: #{type}"
end