Module: Swagger::Bash::ClassMethods Private

Defined in:
lib/swagger/builder.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extend_object(dash) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


10
11
12
13
14
# File 'lib/swagger/builder.rb', line 10

def self.extend_object(dash)
  fail TypeError, 'Bash only works on Dash' unless dash <= Hashie::Dash
  dash.instance_variable_get('@required_properties').clear
  dash.coerce_value Hashie::Dash, Swagger::Bash, strict: false
end

Instance Method Details

#required?(_name) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:


16
17
18
# File 'lib/swagger/builder.rb', line 16

def required?(_name)
  false
end