Always include comprehensive documentation with clear examples for properties, methods, and code patterns. Documentation should include: 1. **Property descriptions**: Use the `description:` attribute to explain what each property does
Always include comprehensive documentation with clear examples for properties, methods, and code patterns. Documentation should include:
description:
attribute to explain what each property does
property :source_location, introduced: "17.6", String,
description: "The location where the package source resides."
@since
tags and introduced:
attributes to track when features were introduced
# @since 17.9
property :only_record_changes, [TrueClass, FalseClass], default: false,
description: "Only record changes to the registry key."
# For command options:
option :connection_protocol,
short: "-o PROTOCOL",
long: "--connection-protocol PROTOCOL",
description: "The protocol to use to connect to the target node (such as 'ssh' or 'winrm')."
# This matches mount points like "/mnt/volume"
when /\A#{Regexp.escape(real_mount_point)}\s+#{device_mount_regex}\s/
Comprehensive documentation reduces the learning curve for new developers and makes the codebase more maintainable.
Enter the URL of a public GitHub repository