Class: Contactually::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/contactually/utils.rb

Class Method Summary collapse

Class Method Details

.method_missing(m, *args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/contactually/utils.rb', line 5

def method_missing(m, *args)
  case m
  when /^(\w*)_hash_to_objects/ then
    hash_to_objects($1, *args)
  when /^build_(\w*)/ then
    build_object($1, *args)
  else
    super(m, *args)
  end
end

.respond_to?(m, *args) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
19
20
21
22
23
24
25
# File 'lib/contactually/utils.rb', line 16

def respond_to?(m, *args)
  case m
  when /^(\w*)_hash_to_objects/ then
    true
  when /^build_(\w*)/ then
    true
  else
    super(m, *args)
  end
end