module Raml::Headers
Private Class Methods
included(base)
click to toggle source
XXX - need this line here to trigger Yard to generate docs for the above attribute.
# File lib/raml/mixin/headers.rb, line 10 def self.included(base) base.instance_eval do non_scalar_property :headers children_by :headers, :name, Header end end
Private Instance Methods
parse_headers(value)
click to toggle source
# File lib/raml/mixin/headers.rb, line 17 def parse_headers(value) validate_hash 'headers', value, String, Hash value.map { |h_name, h_data| Header.new h_name, h_data, self } end