Class: Grape::API::Boolean

Inherits:
Object
  • Object
show all
Defined in:
lib/grape/api.rb

Class Method Summary collapse

Class Method Details

.build(val) ⇒ Object


14
15
16
17
18
# File 'lib/grape/api.rb', line 14

def self.build(val)
  return nil if val != true && val != false

  new
end