Class: Agave::Dump::Dsl::Root
- Inherits:
-
Object
- Object
- Agave::Dump::Dsl::Root
- Includes:
- AddToDataFile, CreateDataFile, CreatePost
- Defined in:
- lib/agave/dump/dsl/root.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
- #directory(path, &block) ⇒ Object
-
#initialize(config_code, agave, operations) ⇒ Root
constructor
A new instance of Root.
Methods included from AddToDataFile
Methods included from CreatePost
Methods included from CreateDataFile
Constructor Details
#initialize(config_code, agave, operations) ⇒ Root
Returns a new instance of Root.
19 20 21 22 23 24 25 26 |
# File 'lib/agave/dump/dsl/root.rb', line 19 def initialize(config_code, agave, operations) @agave = agave @operations = operations # rubocop:disable Lint/Eval eval(config_code) # rubocop:enable Lint/Eval end |
Instance Attribute Details
#agave ⇒ Object (readonly)
Returns the value of attribute agave.
17 18 19 |
# File 'lib/agave/dump/dsl/root.rb', line 17 def agave @agave end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
17 18 19 |
# File 'lib/agave/dump/dsl/root.rb', line 17 def operations @operations end |