class Croesus::Coercions::BooleanDefinitions
Public Class Methods
bind_to(coercer)
click to toggle source
# File lib/croesus/coercions/boolean_definitions.rb, line 27 def self.bind_to(coercer) coercer.register(TrueClass, String) { |o, _| 'true' } coercer.register(FalseClass, String) { |o, _| 'false' } end