2015-01-09から1日間の記事一覧
勢いで作りました。 require 'scottie' require 'type_constraints' TypeConstraints.setup do subtype :NotNgWord, :String do constraint -> v { v !~ /悪/ } end end class Person has name: :NotNgWord, twitter_acount: :String end # ok person = Pers…