Method: WSList.add
- Defined in:
- lib/ws_list.rb
.add(service) ⇒ Array<WSDSL>
Add a service to the array tracking the playco services
16 17 18 19 20 |
# File 'lib/ws_list.rb', line 16 def add(service) @list ||= [] @list << service unless @list.find{|s| s.url == service.url && s.verb == service.verb} @list end |