Class: AutomationObject::Dsl::Proxy

Inherits:
Proxy::Proxy show all
Defined in:
lib/automation_object/dsl/_proxy.rb

Overview

Base Proxy Object Proxies intercept commands and issue calls to the state Prevents inspection from picking up internal methods

Instance Method Summary collapse

Methods inherited from Proxy::Proxy

#method_missing

Constructor Details

#initialize(subject_class, blue_prints, state, name) ⇒ Proxy

Returns a new instance of Proxy

Parameters:



15
16
17
18
19
20
21
22
# File 'lib/automation_object/dsl/_proxy.rb', line 15

def initialize(subject_class, blue_prints, state, name)
  @blue_prints = blue_prints
  @state = state
  @name = name
  @subject_class = subject_class

  @subject = @subject_class.new(blue_prints, state)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AutomationObject::Proxy::Proxy