class Dato::Dump::Dsl::DataFile

Public Class Methods

new(operation, &block) click to toggle source
# File lib/dato/dump/dsl/create_post.rb, line 9
def initialize(operation, &block)
  @operation = operation
  instance_eval(&block)
end

Public Instance Methods

content(value) click to toggle source
# File lib/dato/dump/dsl/create_post.rb, line 19
def content(value)
  @operation.content = value
end
frontmatter(format, value) click to toggle source
# File lib/dato/dump/dsl/create_post.rb, line 14
def frontmatter(format, value)
  @operation.frontmatter_format = format
  @operation.frontmatter_value = value
end