Class: Agave::Dump::Dsl::Directory
- Inherits:
-
Object
- Object
- Agave::Dump::Dsl::Directory
- Includes:
- AddToDataFile, CreateDataFile, CreatePost
- Defined in:
- lib/agave/dump/dsl/directory.rb
Instance Attribute Summary collapse
-
#agave ⇒ Object
readonly
Returns the value of attribute agave.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
Instance Method Summary collapse
-
#initialize(agave, operations, &block) ⇒ Directory
constructor
A new instance of Directory.
- #method_missing(method, *args, &block) ⇒ Object
Methods included from AddToDataFile
Methods included from CreatePost
Methods included from CreateDataFile
Constructor Details
#initialize(agave, operations, &block) ⇒ Directory
Returns a new instance of Directory.
16 17 18 19 20 21 22 |
# File 'lib/agave/dump/dsl/directory.rb', line 16 def initialize(agave, operations, &block) @agave = agave @operations = operations @self_before_instance_eval = eval 'self', block.binding instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
24 25 26 |
# File 'lib/agave/dump/dsl/directory.rb', line 24 def method_missing(method, *args, &block) @self_before_instance_eval.send method, *args, &block end |
Instance Attribute Details
#agave ⇒ Object (readonly)
Returns the value of attribute agave.
14 15 16 |
# File 'lib/agave/dump/dsl/directory.rb', line 14 def agave @agave end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
14 15 16 |
# File 'lib/agave/dump/dsl/directory.rb', line 14 def operations @operations end |