Parent

SeedFu::BlockHash

@private

Public Class Methods

new(proc) click to toggle source
# File lib/seed-fu/block_hash.rb, line 4
def initialize(proc)
  @hash = {}
  proc.call(self)
end

Public Instance Methods

method_missing(method_name, *args, &block) click to toggle source
# File lib/seed-fu/block_hash.rb, line 13
def method_missing(method_name, *args, &block)
  if method_name.to_s =~ /^(.*)=$/ && args.length == 1 && block.nil?
    @hash[$1] = args.first
  else
    super
  end
end
to_hash() click to toggle source
# File lib/seed-fu/block_hash.rb, line 9
def to_hash
  @hash
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.