diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-08 23:43:54 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-08 23:43:54 +0200 |
commit | 565060421d086fdc8e5f58179b45181b11b5cd63 (patch) | |
tree | 36db5873e7b130225f4497f919015b3edf4c4716 /lib/evendoors/link.rb | |
parent | 6c0975a3771171ff5ee611d29ef101c189440947 (diff) | |
download | edoors-ruby-565060421d086fdc8e5f58179b45181b11b5cd63.zip edoors-ruby-565060421d086fdc8e5f58179b45181b11b5cd63.tar.gz |
Link: add nil default values to initialize
Diffstat (limited to 'lib/evendoors/link.rb')
-rw-r--r-- | lib/evendoors/link.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/evendoors/link.rb b/lib/evendoors/link.rb index b2a9bba..d871f1c 100644 --- a/lib/evendoors/link.rb +++ b/lib/evendoors/link.rb @@ -6,7 +6,7 @@ module EvenDoors # class Link # - def initialize src, dsts, fields, cond_fields, cond_value + def initialize src, dsts, fields=nil, cond_fields=nil, cond_value=nil @src = src # link source name @dsts = dsts # , separated destinations to apply to the particle on linking success @fields = fields # , separated fields to apply to the particle on linking success |