class Gorillib::Factory::Boolean10Factory

Public Class Methods

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

Public Instance Methods

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