Class: Windows::Units::Converter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/windows/units/converter.rb

Direct Known Subclasses

Formats::Percent, Formats::Pixel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(el, options = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/windows/units/converter.rb', line 9

def initialize(el, options = {})
  @el      = el
  @options = options
end

Instance Attribute Details

#elObject (readonly)

Returns the value of attribute el.



7
8
9
# File 'lib/windows/units/converter.rb', line 7

def el
  @el
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/windows/units/converter.rb', line 7

def options
  @options
end

Instance Method Details

#runObject



14
15
16
# File 'lib/windows/units/converter.rb', line 14

def run
  raise "you must implement this method"
end