Class: Core::Io::Json::Stream::Interface

Inherits:
Object
  • Object
show all
Defined in:
app/api/core/io/json/stream.rb

Overview

An interface matches object who respond to the provided method

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ Interface

Returns a new instance of Interface.



9
10
11
# File 'app/api/core/io/json/stream.rb', line 9

def initialize(interface)
  @method = interface
end

Instance Method Details

#===(other) ⇒ Object



13
14
15
# File 'app/api/core/io/json/stream.rb', line 13

def ===(other)
  other.respond_to?(:zip)
end