Module: MJ

Defined in:
lib/mj/error.rb,
lib/mj/logging.rb,
lib/mj/vcs/git.rb,
lib/mj/visitor.rb,
lib/mj/tools/ssh.rb,
lib/mj/tools/editor.rb,
lib/mj/tools/subprocess.rb,
lib/mj/mixins/inherited_attributes.rb

Overview

A mixin that implements inheriting values from a parent module. The parent object can be set in two ways.

object.parent = parent
object.parent = lambda { some_function_returning_parent() }

Set the inherited values with

class MyClass

    include GetValuesFromParent

    inheritated_attr_accessor :myattr
    inheritated_attr_accessor :myotherattr.

end

Defined Under Namespace

Modules: Logging, Mixins, Tools, VCS Classes: Error, Visitable, VisitorBase