module RJR

RJR Node Callback

Copyright © 2012-2014 Mohammed Morsi <mo@morsi.org> Licensed under the Apache License, Version 2.0

RJR Result Representation

Copyright © 2012-2014 Mohammed Morsi <mo@morsi.org> Licensed under the Apache License, Version 2.0

RJR HandlesMethods Mixin

Copyright © 2014 Mohammed Morsi <mo@morsi.org> Licensed under the Apache License, Version 2.0

RJR HasMessages Mixin

Copyright © 2014 Mohammed Morsi <mo@morsi.org> Licensed under the Apache License, Version 2.0

Constants

VERSION

Public Class Methods

persistent_nodes() click to toggle source

Return the persistent rjr nodes

# File lib/rjr/common.rb, line 19
def self.persistent_nodes
  # rerun each time (eg don't store in var) incase new nodes were included
  RJR::Nodes.constants.collect { |n|
    nc = RJR::Nodes.const_get(n)
    nc.superclass == RJR::Node && nc.persistent? ?
    nc : nil
  }.compact
end