class Agave::Dump::Dsl::DataFile

Public Class Methods

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

Public Instance Methods

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