Sha256: 93a42cd3c11532b4d8a173c100351173efcb4e0db3f6ee0e20e784ff26e0170b
Contents?: true
Size: 468 Bytes
Versions: 10
Compression:
Stored size: 468 Bytes
Contents
# encoding: utf-8 # options.extend(HashStructMixin) # options.name # options.force? module Nake module HashStructMixin def method_missing(name, *args, &block) if args.empty? && block.nil? # options.name if value = self[name] return value # options.force? elsif name.to_s.match(/^(.*)\?$/) && value = self[$1.to_sym] return value end end super(name, *args, &block) end end end
Version data entries
10 entries across 10 versions & 2 rubygems