lib/esse/primitives/hstring.rb in esse-0.2.0 vs lib/esse/primitives/hstring.rb in esse-0.2.2
- old
+ new
@@ -7,10 +7,10 @@
# monkey patching.
# And on this state and not thinking about to add ActiveSupport dependency
class Hstring
extend Forwardable
- def_delegators :@value, :==, :eq, :to_s, :to_sym, :inspect, :sub, :capitalize
+ def_delegators :@value, :==, :eq, :to_s, :to_sym, :inspect, :sub, :capitalize, :tr
attr_reader :value
def self.def_conventional(bang_method, conv_method = nil)
conv_method ||= bang_method.to_s.sub(/[!?]*$/, '')
if public_instance_methods.include?(conv_method)