lib/hermod/xml_section_builder.rb
# Public: defines a node for sending a boolean to HMRC. A "yes" will be
# sent if it's true and a "no" will be sent if it's false
#
# name    - the name of the node. This will become the name of the method on the XmlSection.
# options - a hash of options used to set up validations.
#
# Returns nothing you should rely on
defines a node for sending a boolean to HMRC. A "yes" will be
sent if it's true and a "no" will be sent if it's false

name    - the name of the node. This will become the name of the method on the XmlSection.
options - a hash of options used to set up validations.

Returns nothing you should rely on
defines a node for sending a boolean to HMRC . A " yes " will be sent if it ' s true and a " no " will be sent if it ' s false name - the name of the node . This will become the name of the method on the XmlSection . options - a hash of options used to set up validations . Returns nothing you should rely on
def yes_no_node(name, options={})
      create_method(name, [], [], options) do |value, attributes|
        [(value ? YES : NO), attributes]
      end
    end
def yes_no_node ( name , options = { } ) create_method ( name , [ ] , [ ] , options ) do | value , attributes | [ ( value ? YES : NO ) , attributes ] end end
Public: defines a node for sending a boolean to HMRC.
Public : defines a node for sending a boolean to HMRC .
name
options