These are chat archives for dry-rb/chat

25th
Oct 2016
deepj
@deepj
Oct 25 2016 00:15
Let’s say I have something like
module Types
  include Dry::Types.module

  StrippedString  = Strict::String.constructor { |value| value.to_s.strip }
  DowncasedString = Strict::String.constructor { |value| value.to_s.downcase }
end
Piotr Solnica
@solnic
Oct 25 2016 09:03
@deepj expect(StrippedString[“ foo “]).to eql(“foo”) :)
deepj
@deepj
Oct 25 2016 13:47
@solnic Hehe :) an expectation is okay but what the whole spec? :smile: