class Fruity::NamedBlockCollector

Public Class Methods

new(to_hash) click to toggle source
# File lib/fruity/named_block_collector.rb, line 3
def initialize(to_hash)
  @to_hash = to_hash
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/fruity/named_block_collector.rb, line 7
def method_missing(method, *args, &block)
  super unless args.empty?
  @to_hash[method] = block
end