Class: Gorillib::Factory::BooleanFactory
Class Method Summary
collapse
Instance Method Summary
collapse
#receive
Methods inherited from BaseFactory
blankish?, #initialize, native?, #receive, #typename
Class Method Details
470
|
# File 'lib/gorillib/factories.rb', line 470
def self.typename() :boolean ; end
|
Instance Method Details
#blankish?(obj) ⇒ Boolean
472
|
# File 'lib/gorillib/factories.rb', line 472
def blankish?(obj) obj.nil? ; end
|
#convert(obj) ⇒ Object
474
|
# File 'lib/gorillib/factories.rb', line 474
def convert(obj) (obj.to_s == "false") ? false : true ; end
|
#native?(obj) ⇒ Boolean
473
|
# File 'lib/gorillib/factories.rb', line 473
def native?(obj) obj.equal?(true) || obj.equal?(false) ; end
|