Get current version information

version  

Return information representing the current version of Sonic Pi. This information may be further inspected with version.major, version.minor, version.patch and version.dev

Introduced in v2.0

Examples

# Example 1

puts version



# => Prints out the current version such as v2.0.1



# Example 2

puts version.major



# => Prints out the major version number such as 2



# Example 3

puts version.minor



# => Prints out the minor version number such as 0



# Example 4

puts version.patch



# => Prints out the patch level for this version such as 0