class AutomationObject::Dsl::Proxy
Base
Proxy
Object Proxies intercept commands and issue calls to the state Prevents inspection from picking up internal methods
Public Class Methods
new(subject_class, blue_prints, state, name)
click to toggle source
@param subject_class [AutomationObject::Dsl::CompositeBase, nil] @param blue_prints [AutomationObject::BluePrint::Composite::Base] @param state [AutomationObject::State::Base] @param name [Symbol]
# 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