Sha256: 7f849965700489d8450b5b63bd12e571629896e39d928c6ef4212476acc210a0
Contents?: true
Size: 373 Bytes
Versions: 7
Compression:
Stored size: 373 Bytes
Contents
require 'systeme/registration' module Systeme module Conversions def method_missing(method_name, *arguments) if match_data = method_name.to_s.match(/in_([a-zA-Z]+)/) if Systeme::Registration::names.include?(match_data[1]) return self / 1.0.send(match_data[1]) end end return super end end end
Version data entries
7 entries across 7 versions & 1 rubygems