Class: JennCad::Extras::Hardware

Inherits:
Object
  • Object
show all
Defined in:
lib/jenncad/extras/hardware.rb

Direct Known Subclasses

Din912, Din933, Din934, Iso7380

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fightObject

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_stringObject



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