Module: Swagger::Bash::ClassMethods

Defined in:
lib/swagger/builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extend_object(dash) ⇒ Object



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

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

Returns:

  • (Boolean)


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

def required?(_name)
  false
end