summaryrefslogtreecommitdiff
path: root/lib/chained.rb
blob: d775a6d22a66b694078d1b51efe437ddc9af0fa7 (plain)
1
2
3
4
5
6
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