class Protein::GetConst
Public Class Methods
call(input)
click to toggle source
# File lib/protein/get_const.rb, line 4 def call(input) if input.is_a?(String) Object.const_get(input) elsif input != nil input else raise DefinitionError, "unset required option" end end
map(array)
click to toggle source
# File lib/protein/get_const.rb, line 14 def map(array) array.map { |input| call(input) } end