class Slidr::Configurators::Base

Public Class Methods

new(config) click to toggle source
# File lib/slidr/configurators/base.rb, line 11
def initialize(config)
  # IamSure.of(config).not_nil("argument cannot be null")
  @config = config
end

Public Instance Methods

evaluate(&block) click to toggle source
# File lib/slidr/configurators/base.rb, line 16
def evaluate(&block)
  instance_eval &block
end

Private Instance Methods

html(arg) click to toggle source
# File lib/slidr/configurators/base.rb, line 30
def html(arg)
  # IamSure.of(arg)
  #  .not_nil('html path is nil!')
  #  .unpack(Slidr::Helpers::PathUnpacker.new)
  #  .not_empty("html's path cannot be empty")
  #  .exist(as: :file)
  #  .get
  @config.base.html = arg[:is]
end
remark(arg) click to toggle source
# File lib/slidr/configurators/base.rb, line 21
def remark(arg)
  # IamSure.of(arg)
  #  .not_nil('remark path is nil!')
  #  .unpack(Slidr::Helpers::PathUnpacker.new)
  #  .not_empty("remark's path cannot be empty")
  #  .exist(as: :file)
  @config.base.remark = arg[:is]
end
script(arg) click to toggle source
# File lib/slidr/configurators/base.rb, line 44
def script(arg)
  # IamSure.of(arg)
  #   .unpack(Slidr::Helpers::ScriptUnpacker.new)
  #   .get()
  @config.base.script = arg[:is]
end
structure(arg) click to toggle source
# File lib/slidr/configurators/base.rb, line 40
def structure(arg)
  @config.base.structure = arg[:is]
end