Sha256: 9bbea5ac27fc151d1fbe3985b2de0749c9252f6689811a67537740da56f5f13c

Contents?: true

Size: 151 Bytes

Versions: 15

Compression:

Stored size: 151 Bytes

Contents

module DeviceCloud
  module Utils
    def constantize(string)
      string.split("::").inject(Module) {|acc, val| acc.const_get(val)}
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
device_cloud-0.2.4 lib/device_cloud/utils.rb
device_cloud-0.2.3 lib/device_cloud/utils.rb
device_cloud-0.2.2 lib/device_cloud/utils.rb
device_cloud-0.2.1 lib/device_cloud/utils.rb
device_cloud-0.2.0 lib/device_cloud/utils.rb
device_cloud-0.1.0 lib/device_cloud/utils.rb
device_cloud-0.0.11 lib/device_cloud/utils.rb
device_cloud-0.0.10 lib/device_cloud/utils.rb
device_cloud-0.0.9 lib/device_cloud/utils.rb
device_cloud-0.0.8 lib/device_cloud/utils.rb
device_cloud-0.0.7 lib/device_cloud/utils.rb
device_cloud-0.0.6 lib/device_cloud/utils.rb
device_cloud-0.0.5 lib/device_cloud/utils.rb
device_cloud-0.0.4 lib/device_cloud/utils.rb
device_cloud-0.0.3 lib/device_cloud/utils.rb