Class: Windows::Units::Converter::Base
- Inherits:
-
Object
- Object
- Windows::Units::Converter::Base
- Defined in:
- lib/windows/units/converter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#el ⇒ Object
readonly
Returns the value of attribute el.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(el, options = {}) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
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, = {}) @el = el @options = end |
Instance Attribute Details
#el ⇒ Object (readonly)
Returns the value of attribute el.
7 8 9 |
# File 'lib/windows/units/converter.rb', line 7 def el @el end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/windows/units/converter.rb', line 7 def @options end |
Instance Method Details
#run ⇒ Object
14 15 16 |
# File 'lib/windows/units/converter.rb', line 14 def run raise "you must implement this method" end |