From: Clifford Heath Date: 2007-02-17T12:55:09+09:00 Subject: Re: Passing a block into a class_eval Of course, that should be: class Foo MAX = 14 typed_attr(Integer, nil, :foo) {|v| v <= MAX } array_attr(Range, :bar) {|v| v.end+(v.exclude_end? ? 0 : 1) < MAX } end Can't use a block without parenthesizing the params...