Module: Missions::DSL::Helpers

Included in:
Assignment, Client::Proxy, Event, EventHandler, Query, Requirements, Resolution
Defined in:
lib/missions/dsl/helpers.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


9
10
11
# File 'lib/missions/dsl/helpers.rb', line 9

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#dsl_module_for(name) ⇒ Object

Return DSL module w/ specified name


50
51
52
# File 'lib/missions/dsl/helpers.rb', line 50

def dsl_module_for(name)
  Missions::DSL.const_get(name.intern)
end

#is_dsl_category?(category) ⇒ Boolean

Return bool indicating if category is a DSL category


55
56
57
# File 'lib/missions/dsl/helpers.rb', line 55

def is_dsl_category?(category)
  Missions::DSL.constants.collect { |c| c.to_s }.include?(category.to_s)
end