Class: Object

Inherits:
BasicObject
Defined in:
lib/beethoven/object.rb

Overview

Require ‘beethoven/object` to monkey patch Object with the class composition operators.

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



4
5
6
# File 'lib/beethoven/object.rb', line 4

def *(other)
  Beethoven::Composer.new(other, self)
end

#|(other) ⇒ Object



8
9
10
# File 'lib/beethoven/object.rb', line 8

def |(other)
  Beethoven::Composer.new(self, other)
end