Module: SOAP::Property::Util

Defined in:
lib/soap/property.rb

Class Method Summary collapse

Class Method Details

.const_from_name(fqname) ⇒ Object



41
42
43
# File 'lib/soap/property.rb', line 41

def const_from_name(fqname)
  fqname.split("::").inject(Kernel) { |klass, name| klass.const_get(name) }
end

.require_from_name(fqname) ⇒ Object



46
47
48
# File 'lib/soap/property.rb', line 46

def require_from_name(fqname)
  require File.join(fqname.split("::").collect { |ele| ele.downcase })
end