lib/pudl/property_types.rb
# Define a DSL property that accepts a single value
Define a DSL property that accepts a single value
Define a DSL property that accepts a single value
def property_single_static name, &block
        send :define_method, name do |v=nil, &b|
          if !b.nil?
            raise ArgumentError, "property_single_static properties do not support blocks"
          end
          instance_exec v, &block
        end
      end
def property_single_static name , & block send :define_method , name do | v = nil , & b | if ! b . nil? raise ArgumentError , "property_single_static properties do not support blocks" end instance_exec v , & block end end
Define a DSL property that accepts a single value
Define a DSL property that accepts a single value
name
<not_specific>
block
<not_specific>