JonRowe/setsumei

View on GitHub
lib/setsumei/describable/string_attribute.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Setsumei
  module Describable
    class StringAttribute

      def == other
        :string == other || StringAttribute == other
      end

      def cast value
        value.to_s
      end

    end
  end
end