# frozen_string_literal: true require 'agave/dump/dsl/create_post' require 'agave/dump/dsl/create_data_file' require 'agave/dump/dsl/add_to_data_file' module Agave module Dump module Dsl class Directory include Dsl::CreateDataFile include Dsl::CreatePost include Dsl::AddToDataFile attr_reader :agave, :operations def initialize(agave, operations, &block) @agave = agave @operations = operations @self_before_instance_eval = eval 'self', block.binding instance_eval(&block) end def method_missing(method, *args, &block) @self_before_instance_eval.send method, *args, &block end end end end end