class Adornable::Context

A context object is passed to the decorator method, and contains information about the decorated method being called.

Public Class Methods

new(method_receiver:, method_name:, method_arguments:, decorator_name:, decorator_options:) click to toggle source
# File lib/adornable/context.rb, line 15
def initialize(method_receiver:, method_name:, method_arguments:, decorator_name:, decorator_options:)
  @method_receiver = method_receiver
  @method_name = method_name
  @method_arguments = method_arguments
  @decorator_name = decorator_name
  @decorator_options = decorator_options
end