Parent

Files

Class/Module Index [+]

Quicksearch

Capistrano::Configuration::Namespaces::Namespace

Public Class Methods

new(name, parent) click to toggle source
# File lib/capistrano/configuration/namespaces.rb, line 176
def initialize(name, parent)
  @parent = parent
  @name = name
end

Public Instance Methods

method_missing(sym, *args, &block) click to toggle source
# File lib/capistrano/configuration/namespaces.rb, line 189
def method_missing(sym, *args, &block)
  if parent.respond_to?(sym)
    parent.send(sym, *args, &block)
  else
    super
  end
end
respond_to?(sym, include_priv=false) click to toggle source
# File lib/capistrano/configuration/namespaces.rb, line 185
def respond_to?(sym, include_priv=false)
  super || parent.respond_to?(sym, include_priv)
end
role(*args) click to toggle source
# File lib/capistrano/configuration/namespaces.rb, line 181
def role(*args)
  raise NotImplementedError, "roles cannot be defined in a namespace"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.