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


7
8
9
# File 'app/api/core/io/json/stream.rb', line 7

def initialize(interface)
  @method = interface
end

Instance Method Details

#===(other) ⇒ Object


11
12
13
# File 'app/api/core/io/json/stream.rb', line 11

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