Project

General

Profile

Evolution #261

Implementation du yield au constructeur

Added by Romain GEORGES over 7 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
03/30/2012
Due date:
03/31/2012
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

gestion des bloc en construction du type :

def amethod ( _options = {})
    myOptions = Methodic::get_options(_options) do |m|
      m.specify_default_value_of :country => 'France'
      m.specify_classes_of :name => String, :surname => String, :age => Fixnum, :country => String
      m.specify_presence_of :name
      m.specify_presence_of :surname
      m.specify_formats_of :name => /\w+/, :surname => /\w+/, :country => /\w+/
      m.merge!
    end
    # processing method
  end
  [...]

History

#1

Updated by Romain GEORGES over 6 years ago

  • Target version changed from 105 to 1.0
#2

Updated by Romain GEORGES over 6 years ago

  • Status changed from Réalisé to Fermé

Also available in: Atom PDF