lib/pudl/property_types.rb
# Define a DSL property that accepts multiple values
# and receives them as an array
Define a DSL property that accepts multiple values
and receives them as an array
Define a DSL property that accepts multiple values and receives them as an array
def property_multi_static name, &block
        send :define_method, name do |*args, &b|
          if !b.nil?
            raise ArgumentError, "property_multi_static properties do not support blocks"
          end
          instance_exec args, &block
        end
      end
def property_multi_static name , & block send :define_method , name do | * args , & b | if ! b . nil? raise ArgumentError , "property_multi_static properties do not support blocks" end instance_exec args , & block end end
Define a DSL property that accepts multiple values
and receives them as an array
Define a DSL property that accepts multiple values and receives them as an array
name
<not_specific>
block
<not_specific>