Module: Skylab::Myterm::ChannelScalarNormalized
- Defined in:
- lib/myterm/api.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[](obj) ⇒ Object
50 51 52 |
# File 'lib/myterm/api.rb', line 50 def [] obj obj.extend self end |
Instance Method Details
#to_hex ⇒ Object
44 45 46 |
# File 'lib/myterm/api.rb', line 44 def to_hex (('ff'.to_i(16).to_f * self).to_i).to_s(16).rjust(2, '0') end |