Sha256: 563d454256056f8be9483791f191de5be2b3604944c0ba0c767fefac34568757
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true require 'happymapper' require 'active_support/core_ext/string' module ForwardCalendar module Helper class NormalizedString def self.parse(value) value.to_s.underscore.downcase end end end end HappyMapper::SupportedTypes.register_type(ForwardCalendar::Helper::NormalizedString) do |value| ForwardCalendar::Helper::NormalizedString.parse(value) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forward-calendar-0.9.0 | lib/forward_calendar/helper/normalized_string.rb |
forward-calendar-0.8.2 | lib/forward_calendar/helper/normalized_string.rb |