Sha256: eb54c652862c4787e873c23b004bc68a9b91a2007d80e65abeb22c7ef56b4551
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
# Encoding: utf-8 # rubocop:disable Style/MethodMissing module Packer class Macro def method_missing(method_name, *args) name = method_name.to_s.slice(0,1).capitalize + method_name.to_s.slice(1..-1) "{{ .#{name} }}" end def respond_to_missing?(method_name, include_private = false) true end def respond_to?(symbol, include_private=false) # We literally respond to everything... true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
packer-config-1.6.1 | lib/packer/macro.rb |