diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-29 00:31:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-30 19:03:18 +0900 |
commit | b2d96abb42abbe2e01f010ffc9ac51f0f9a50002 (patch) | |
tree | 57791da8a71280c335109916376e13f5e0c63af3 /lib/forwardable.rb | |
parent | cfbae7dae052180e5dde05a27948ae8d779eccab (diff) | |
download | ruby-b2d96abb42abbe2e01f010ffc9ac51f0f9a50002.tar.gz |
Extract version number from the source
"requiring version.rb" strategy has some issues.
- cannot work when cross-compiling
- often introduces wrong namespace
- must know the superclasses
- costs at each runtime than at build-time
etc.
Diffstat (limited to 'lib/forwardable.rb')
-rw-r--r-- | lib/forwardable.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/forwardable.rb b/lib/forwardable.rb index 4cfade470a..d0f49f7309 100644 --- a/lib/forwardable.rb +++ b/lib/forwardable.rb @@ -110,7 +110,10 @@ # module Forwardable require 'forwardable/impl' - require "forwardable/version" + + # Version of +forwardable.rb+ + VERSION = "1.3.1" + FORWARDABLE_VERSION = VERSION @debug = nil class << self |