lib/puppet/pops/model/factory.rb
# Builds body :) from different kinds of input
# @overload f_build_body(nothing)
#   @param nothing [nil] unchanged, produces nil
# @overload f_build_body(array)
#   @param array [Array<Expression>] turns into a BlockExpression
# @overload f_build_body(expr)
#   @param expr [Expression] produces the given expression
# @overload f_build_body(obj)
#   @param obj [Object] produces the result of calling #build with body as argument
Builds body :) from different kinds of input
Builds body : ) from different kinds of input
def f_build_body(body)
    case body
    when NilClass
      nil
    when Array
      Puppet::Pops::Model::Factory.new(Model::BlockExpression, *body)
    else
      build(body)
    end
  end
def f_build_body ( body ) case body when NilClass nil when Array Puppet :: Pops :: Model :: Factory . new ( Model :: BlockExpression , * body ) else build ( body ) end end
Builds body :) from different kinds of input
Builds body : ) from different kinds of input
body
<not_specific>
overload
f_build_body(nothing) @param nothing [nil] unchanged, produces nil
f_build_body ( nothing ) @param nothing [ nil ] unchanged produces nil
overload
f_build_body(array) @param array [Array] turns into a BlockExpression
f_build_body ( array ) @param array [ Array ] turns into a BlockExpression
overload
f_build_body(expr) @param expr [Expression] produces the given expression
f_build_body ( expr ) @param expr [ Expression ] produces the given expression
overload
f_build_body(obj) @param obj [Object] produces the result of calling #build with body as argument
f_build_body ( obj ) @param obj [ Object ] produces the result of calling #build with body as argument