Module: Helioth

Defined in:
lib/helioth.rb,
lib/helioth/dsl.rb,
lib/helioth/role.rb,
lib/helioth/action.rb,
lib/helioth/feature.rb,
lib/helioth/version.rb,
lib/helioth/features.rb,
lib/helioth/relation.rb,
lib/helioth/model_additions.rb,
lib/helioth/controller_resource.rb,
lib/helioth/controller_additions.rb

Defined Under Namespace

Modules: ControllerAdditions, ModelAdditions Classes: Action, ControllerResource, Dsl, Feature, Features, Relation, Role

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/helioth.rb', line 18

def self.const_missing(name)
  if name == :DSL
    Helioth.dsl
  else
    super
  end
end

.dsl(file = nil) ⇒ Object



14
15
16
# File 'lib/helioth.rb', line 14

def self.dsl(file = nil)
  Helioth.const_set("DSL", Helioth::Dsl.load(file)) unless const_defined?("DSL")
end