Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

List should have validation

#21

Much like list_select.


    def list(&validation); LIST; end
    list_block = lambda do |input|
      args = validate(input, [Array]).collect do |arg|
        arg.kind_of?(String) ? YAML.load(arg) : arg
      end
      
      if validation
        args.collect! {|arg| validation.call(arg) }
      end
      
      args
    end

Reported by bahuvrihi · March 30th, 2009 @ 09:51 PM

State: resolved
Milestone: none
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • Assigned user set to bahuvrihi
    • State changed from new to resolved

    May 3rd, 2009 @ 09:09 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.