class Envie::Env

Public Instance Methods

derive(child) click to toggle source
# File lib/envie/env.rb, line 17
def derive(child)
  Envie.at(child).from(self)
end
features() click to toggle source
# File lib/envie/env.rb, line 4
def features
  @features ||= []
end
from(parent) click to toggle source
# File lib/envie/env.rb, line 21
def from(parent)
  @parent = parent
  self
end
has?(name) click to toggle source
# File lib/envie/env.rb, line 13
def has?(name)
  features.include?(name) || (@parent && @parent.has?(name))
end
with(feature) click to toggle source
# File lib/envie/env.rb, line 8
def with(feature)
  features << feature
  self
end