Class: Windows::Units::Converter::Formats::Percent

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

Instance Attribute Summary

Attributes inherited from Base

#el, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Windows::Units::Converter::Base

Instance Method Details

#runObject



21
22
23
24
# File 'lib/windows/units/converter.rb', line 21

def run
  raise "you must specify options[:base] to change number to percent" unless options[:base]
  options[:base].percent(el)
end