# File lib/autumn/leaf.rb, line 178 def initialize(opts={}) @port = opts[:port] @options = opts @options[:command_prefix] ||= DEFAULT_COMMAND_PREFIX @break_flag = false @logger = options[:logger] @stems = Set.new # Let the stems array respond to methods as if it were a single stem class << @stems def method_missing(meth, *args) if all? { |stem| stem.respond_to? meth } then collect { |stem| stem.send(meth, *args) } else super end end end end