module NeedfulThings::DSL

Public Instance Methods

needs(name:, otherwise:) click to toggle source
# File lib/needful_things/dsl.rb, line 6
def needs(name:, otherwise:)
  needs_engine.register(name: name, otherwise: otherwise)
end
needs_engine() click to toggle source
# File lib/needful_things/dsl.rb, line 10
def needs_engine
  @needs_engine ||= Engine.new
end