Method: ApiBlueprint::Struct.new

Defined in:
lib/api-blueprint/struct.rb

.new(attributes = default_attributes) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/api-blueprint/struct.rb', line 9

def self.new(attributes = default_attributes)
  if respond_to?(:config) && config.replacements
    attributes = KeyReplacer.replace(attributes, config.replacements)
  end

  super
end