Module: SOAP::Property::Util

Defined in:
lib/soap/property.rb

Class Method Summary collapse

Class Method Details

.const_from_name(fqname) ⇒ Object



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

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

.require_from_name(fqname) ⇒ Object



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

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