summaryrefslogtreecommitdiff
path: root/lib/observer.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2020-07-29 00:31:52 +0900
committerNobuyoshi Nakada <[email protected]>2020-07-30 19:03:18 +0900
commitb2d96abb42abbe2e01f010ffc9ac51f0f9a50002 ()
tree57791da8a71280c335109916376e13f5e0c63af3 /lib/observer.rb
parentcfbae7dae052180e5dde05a27948ae8d779eccab (diff)
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.
Notes: Merged: https://.com/ruby/ruby/pull/3375
-rw-r--r--lib/observer.rb1
1 files changed, 1 insertions, 0 deletions
@@ -136,6 +136,7 @@
# ticker.add_observer(warner, :call)
# ticker.run
module Observable
#
# Add +observer+ as an observer on this object. So that it will receive