Module: SOAP::Property::Util

Defined in:
lib/soap/property.rb

Class Method Summary collapse

Class Method Details

.const_from_name(fqname) ⇒ Object



43
44
45
# File 'lib/soap/property.rb', line 43

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

.require_from_name(fqname) ⇒ Object



48
49
50
# File 'lib/soap/property.rb', line 48

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