class Gorillib::Factory::Boolean10Factory

Public Class Methods

typename() click to toggle source
# File lib/gorillib/type/extended.rb, line 69
def self.typename() :boolean_10 ; end

Public Instance Methods

convert(obj) click to toggle source
# File lib/gorillib/type/extended.rb, line 72
def convert(obj)
  case obj.to_s
  when "0" then false
  when "1" then true
  else          super
  end
end