Sha256: 748c38b54f34d14acfad437a91b961abce573a860e7b07ca91d320a7978e6733
Contents?: true
Size: 355 Bytes
Versions: 28
Compression:
Stored size: 355 Bytes
Contents
class NameSpotter class Client class ClientError < Exception; end attr_reader :host attr_reader :port def initialize(opts) @host = opts[:host] @port = opts[:port] @names = [] end def find(text) raise "Subclass must implement find" end def add_name(name) @names << name end end end
Version data entries
28 entries across 28 versions & 1 rubygems