Class: Grape::API::Boolean
- Inherits:
-
Object
- Object
- Grape::API::Boolean
- Defined in:
- lib/grape/api.rb
Class Method Summary collapse
Class Method Details
.build(val) ⇒ Object
11 12 13 14 15 |
# File 'lib/grape/api.rb', line 11 def self.build(val) return nil if val != true && val != false new end |