Sha256: acb25202504e088871ddd100da85c0efade263f6a3905f8ca262a8dce9e1f759
Contents?: true
Size: 356 Bytes
Versions: 1
Compression:
Stored size: 356 Bytes
Contents
require 'blueprint/blueprint' require 'blueprint/components' require 'blueprint/utils' def blueprint(*args, &block) blueprint_def = args.last.is_a?(Hash) ? args.pop : {} if blueprint_def.empty? blueprint_def[:label] = args.pop end blueprint = Blueprint.new(blueprint_def) if block_given? yield blueprint end blueprint end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webbynode-blueprint-0.0.2 | lib/blueprint.rb |