spec/examples/custom_formatter.rb in stringento-2.0.0 vs spec/examples/custom_formatter.rb in stringento-2.1.0
- old
+ new
@@ -5,10 +5,10 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
-class CustomFormatter < ::Stringento::Formatter
+class CustomFormatter < Stringento::Formatter
def yes_no_formatter(value, _arg)
value ? 'Yes' : 'No'
end
def yes_no_unknown_formatter(value, _arg)