class Orchestra::DSL::ObjectContext
Public Class Methods
new(adapter, state)
click to toggle source
# File lib/orchestra/dsl/object_adapter.rb, line 127 def initialize adapter, state @__adapter__ = adapter @__state__ = state return unless adapter.collection? self.singleton_class.send :define_method, :fetch_collection do @__state__.fetch adapter.collection end end
Public Instance Methods
execute(*args)
click to toggle source
# File lib/orchestra/dsl/object_adapter.rb, line 136 def execute *args @__adapter__.execute @__state__, *args end