Class: JennCad::Extras::Hardware
- Inherits:
-
Object
- Object
- JennCad::Extras::Hardware
- Defined in:
- lib/jenncad/extras/hardware.rb
Instance Attribute Summary collapse
-
#z_fight ⇒ Object
Returns the value of attribute z_fight.
Instance Method Summary collapse
-
#initialize(args) ⇒ Hardware
constructor
A new instance of Hardware.
- #option_string ⇒ Object
Constructor Details
#initialize(args) ⇒ Hardware
Returns a new instance of Hardware.
4 5 6 |
# File 'lib/jenncad/extras/hardware.rb', line 4 def initialize(args) @options ||= {} end |
Instance Attribute Details
#z_fight ⇒ Object
Returns the value of attribute z_fight.
3 4 5 |
# File 'lib/jenncad/extras/hardware.rb', line 3 def z_fight @z_fight end |
Instance Method Details
#option_string ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/jenncad/extras/hardware.rb', line 8 def option_string str ="" @options.each do |k,v| str << "#{k}#{v}" end str.gsub(".","_") end |