summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/erb.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/erb.rb b/lib/erb.rb
index 9a91f7647f..c90ce855ec 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -615,7 +615,17 @@ class ERB
Revision = '$Date:: $' # :nodoc: #'
deprecate_constant :Revision
- # Returns revision information for the erb.rb module.
+ # :markup: markdown
+ #
+ # :call-seq:
+ # self.version -> string
+ #
+ # Returns the string revision for \ERB:
+ #
+ # ```
+ # ERB.version # => "4.0.4"
+ # ```
+ #
def self.version
VERSION
end