Class: Philosophal::Transform

Inherits:
Object
  • Object
show all
Defined in:
lib/philosophal/transform.rb

Class Method Summary collapse

Class Method Details

.make(method, value) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/philosophal/transform.rb', line 5

def self.make(method, value)
  case method
  when Proc
    method.call(value)
  else
    value.send(method)
  end
end