Sha256: 2a81818a921fb26f0f1206cdeadd4184904773dc22030b7f2a66ba883664b85b

Contents?: true

Size: 244 Bytes

Versions: 28

Compression:

Stored size: 244 Bytes

Contents

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

def unescape(string)
  string.gsub('\n', "\n").gsub('\"', '"').gsub('\e', "\e")
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
github_api-0.12.3 features/support/helpers.rb
github_api-0.12.2 features/support/helpers.rb
github_api-0.12.1 features/support/helpers.rb
github_api-0.12.0 features/support/helpers.rb
github_api-0.11.3 features/support/helpers.rb
github_api-0.11.2 features/support/helpers.rb
github_api-0.11.1 features/support/helpers.rb
github_api-0.11.0 features/support/helpers.rb
github_api-0.10.2 features/support/helpers.rb
github_api-0.10.1 features/support/helpers.rb
github_api-0.10.0 features/support/helpers.rb
github_api-0.9.7 features/support/helpers.rb
github_api-0.9.6 features/support/helpers.rb
github_api-0.9.5 features/support/helpers.rb
github_api-0.9.4 features/support/helpers.rb
github_api-0.9.3 features/support/helpers.rb
github_api-0.9.2 features/support/helpers.rb
github_api-0.9.1 features/support/helpers.rb
github_api-0.9.0 features/support/helpers.rb
github_api-0.8.11 features/support/helpers.rb