summaryrefslogtreecommitdiff
path: root/lib/chained.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-19 01:29:29 +0200
committerPaul Buetow <paul@buetow.org>2025-02-19 01:29:29 +0200
commit19d768bd12231e96e82d21ac551865d447d04b8b (patch)
tree8cc0cba1203c68995534254ba637c3fa169c1ab1 /lib/chained.rb
parente37f1d7dfeb3ff40ee80c6e097cae30b9ec512c4 (diff)
add chained
Diffstat (limited to 'lib/chained.rb')
-rw-r--r--lib/chained.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chained.rb b/lib/chained.rb
new file mode 100644
index 0000000..d775a6d
--- /dev/null
+++ b/lib/chained.rb
@@ -0,0 +1,7 @@
+module RCM
+ # To allow chained barwords, e.g. "i want a beer"
+ module Chained
+ def method_missing(method_name, *args) = ([method_name] + args.flatten).join(' ')
+ def respond_to_missing? = true
+ end
+end