Method: Retrospec::Puppet::Generators::FunctionGenerator#native_function?
- Defined in:
- lib/retrospec/plugins/v1/plugin/generators/function_generator.rb
#native_function?(function_file) ⇒ Boolean
Returns true if the function file is a native function.
178 179 180 181 182 |
# File 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb', line 178 def native_function?(function_file) # mod_name/functions File.basename(Pathname.new(function_file).parent) == 'functions' && File.extname(function_file) == '.pp' end |