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.4.9 features/support/helpers.rb
github_api-0.4.8 features/support/helpers.rb
github_api-0.4.7 features/support/helpers.rb
github_api-0.4.6 features/support/helpers.rb
github_api-0.4.5 features/support/helpers.rb
github_api-0.4.4 features/support/helpers.rb
github_api-0.4.3 features/support/helpers.rb