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.8.10 features/support/helpers.rb
github_api-0.8.9 features/support/helpers.rb
github_api-0.8.8 features/support/helpers.rb
github_api-0.8.7 features/support/helpers.rb
github_api-0.8.6 features/support/helpers.rb
github_api-0.8.5 features/support/helpers.rb
github_api-0.8.4 features/support/helpers.rb
github_api-0.8.3 features/support/helpers.rb