Sha256: bd4c836bc3e606cbb571dbfaa917745579d498d6c69462295c4ed49a45ce9529

Contents?: true

Size: 159 Bytes

Versions: 27

Compression:

Stored size: 159 Bytes

Contents

def convert_to_constant(classes)
  constant = Object
  classes.split('::').each do |klass|
    constant = constant.const_get klass
  end
  return constant
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
github_api-0.8.2 features/support/helpers.rb
github_api-0.8.1 features/support/helpers.rb
github_api-0.8.0 features/support/helpers.rb
github_api-0.7.2 features/support/helpers.rb
github_api-0.7.1 features/support/helpers.rb
github_api-0.7.0 features/support/helpers.rb
github_api-0.6.5 features/support/helpers.rb
github_api-0.6.4 features/support/helpers.rb
github_api-0.6.3 features/support/helpers.rb
github_api-0.6.2 features/support/helpers.rb
github_api-0.6.1 features/support/helpers.rb
github_api-0.6.0 features/support/helpers.rb
github_api-0.5.4 features/support/helpers.rb
github_api-0.5.3 features/support/helpers.rb
github_api-0.5.2 features/support/helpers.rb
github_api-0.5.1 features/support/helpers.rb
github_api-0.5.0 features/support/helpers.rb
github_api-0.5.0.rc1 features/support/helpers.rb
github_api-0.4.11 features/support/helpers.rb
github_api-0.4.10 features/support/helpers.rb