Class: Windows::Units::Converter::Finder

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

Constant Summary

Constants included from Formats

Windows::Units::Converter::Formats::SUPPORTED_FORMATS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Formats

#format_for, #supported_formats

Instance Attribute Details

#elObject

Returns the value of attribute el

Returns:

  • (Object)

    the current value of el



49
50
51
# File 'lib/windows/units/converter.rb', line 49

def el
  @el
end

Instance Method Details

#to(format, *args) ⇒ Object



52
53
54
# File 'lib/windows/units/converter.rb', line 52

def to(format, *args)
  format_for(format, el, *args).run
end