Module: Craig::Node

Defined in:
lib/craig/node.rb

Defined Under Namespace

Modules: Age, Bedrooms, HasImage, HasMap, Id, Location, PostedAt, Price, Seeking, Seller, SquareFeet, StartsAndEndsAt, Title, Url

Class Method Summary collapse

Class Method Details

.all_methodsArray

Returns all methods defined by Nodes.

Returns:

  • (Array)

    all methods defined by Nodes



5
6
7
8
9
# File 'lib/craig/node.rb', line 5

def self.all_methods
  Craig::Node.module_eval {
    constants.map { |c| const_get c }
  }.flat_map(&:instance_methods)
end