Class | AWS::Core::XML::Grammar |
In: |
lib/aws/core/xml/grammar.rb
|
Parent: | Object |
rules | [R] | @return [Hash] Returns a hash of rules defined by this grammar. |
Performs a deep copy of the rules hash so that it can be customized without chaning the parent grammar.
Returns a new grammar (leaving the current one un-modified) with the given customizations applied. Customizations can be given in a hash-form or in a block form.
@example Block-form customizations
grammar.customize do element "EnumElement" do symbol_value list end end
@example Hash-form customizations
grammar.customize "EnumElement" => [:symbol_value, :list]
@return [Grammar] Returns a grammar with the given customizations
applied.
Applies customizations to the current grammar, not returning a new grammar.