Sha256: 447ce699a4a2e91be5fe2bfabc79bb1fd053183a5e7ab442cdb50fdb75b0b846
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
module Paradocs # Field DSL # host instance must implement: # #meta(options Hash) # #policy(key Symbol) self # module FieldDSL def required policy :required end def present required.policy :present end def declared policy :declared end def options(opts) policy :options, opts end def whitelisted policy :whitelisted end def transparent meta transparent: true end def length(opts) policy :length, opts end def description(text) meta description: text end def example(value) meta example: value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paradocs-1.1.3 | lib/paradocs/field_dsl.rb |