lib/hermod/xml_section_builder.rb
def yes_node(name, options={})
      create_method(name, [], [], options) do |value, attributes|
        [(value ? YES : nil), attributes]
      end
    end
# Public: defines a node for sending a boolean to HMRC. It will only be
# sent if the boolean is true.
#
# 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. It will only be
sent if the boolean is true.

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 . It will only be sent if the boolean is true . 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_node(name, options={})
      create_method(name, [], [], options) do |value, attributes|
        [(value ? YES : nil), attributes]
      end
    end
def yes_node ( name , options = { } ) create_method ( name , [ ] , [ ] , options ) do | value , attributes | [ ( value ? YES : nil ) , 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