Class: WatchList::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/watch_list/dsl.rb

Defined Under Namespace

Classes: Context, Converter

Class Method Summary collapse

Class Method Details

.convert(exported, opts = {}) ⇒ Object



3
4
5
# File 'lib/watch_list/dsl.rb', line 3

def convert(exported, opts = {})
  WatchList::DSL::Converter.convert(exported, opts)
end

.parse(dsl, path, opts = {}) ⇒ Object



7
8
9
# File 'lib/watch_list/dsl.rb', line 7

def parse(dsl, path, opts = {})
  WatchList::DSL::Context.eval(dsl, path, opts).result
end