module Yema module Virtus class Builder class Format < self def build format = options.fetch(:format, false) Rule::Format.new(attribute.name, format: format) if format end end end end end