Module: Marley::Resources

Defined in:
lib/marley/resources.rb

Defined Under Namespace

Classes: PublicMessage

Class Method Summary collapse

Class Method Details

.map_resource_methods(method) ⇒ Object



6
7
8
# File 'lib/marley/resources.rb', line 6

def self.map_resource_methods(method)
  constants.map{|c| r=const_get(c); r.send(method) if r.respond_to?(method)}.compact
end

.resources_responding_to(method) ⇒ Object



3
4
5
# File 'lib/marley/resources.rb', line 3

def self.resources_responding_to(method)
  constants.map{|c| r=const_get(c); r if r.respond_to?(method)}.compact
end