Sha256: 541ece4f8b370443aba6b231d592d4bf15b7e923622f80d8c3a79c7f11bfd1db

Contents?: true

Size: 166 Bytes

Versions: 1

Compression:

Stored size: 166 Bytes

Contents

module Percentable
  module Percentize
    def percentize field
      define_method(field) do |args=[]|
        Percent.new(super(*args))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
percentable-0.0.1 lib/percentable/percentize.rb