Matriarch::TraitMethod

Parent

Class Index [+]

Quicksearch
Generated with Razzle Dazzle Redfish.
[Validate]

Attributes

container[RW]

(Not documented)

Public Class Methods

new(container, returns=nil, &block) click to toggle source

(Not documented)

# File lib/matriarch/traits.rb, line 6
    def initialize(container, returns=nil, &block)
      super(&block)
      @returns   = returns
      @container = container
    end

Public Instance Methods

call(object, *arguments, &block) click to toggle source

(Not documented)

# File lib/matriarch/traits.rb, line 12
    def call(object, *arguments, &block)
      #object.send(:define_method, &self)
      object.instance_eval(&self)  # need instance_exec
    end
return!() click to toggle source

(Not documented)

# File lib/matriarch/traits.rb, line 17
    def return! ; @returns = true ; end
return?() click to toggle source

(Not documented)

# File lib/matriarch/traits.rb, line 19
    def return? ; @returns ; end

Disabled; run with --debug to generate this.