Class: Amnesie::Network
- Inherits:
-
Object
- Object
- Amnesie::Network
- Defined in:
- lib/amnesie/network.rb
Instance Method Summary collapse
-
#initialize(card_match, name = nil) ⇒ Network
constructor
A new instance of Network.
- #search ⇒ Object
Constructor Details
#initialize(card_match, name = nil) ⇒ Network
Returns a new instance of Network.
5 6 7 8 9 10 |
# File 'lib/amnesie/network.rb', line 5 def initialize(card_match, name = nil) @card_match = card_match @name = name @devs = [] @check = false end |
Instance Method Details
#search ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/amnesie/network.rb', line 12 def search if @name verify_card @devs << @name else search_cards @devs end end |