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