module Telegram::Bot::Types

Constants

VERSION

Public Class Methods

gem_version() click to toggle source
# File lib/telegram/bot/types/version.rb, line 8
def self.gem_version
  Gem::Version.new VERSION
end

Public Instance Methods

camelize(str) click to toggle source

Simple implementation for internal use only. rubocop:disable all

# File lib/telegram/bot/types.rb, line 12
def camelize(str)
  str.gsub(/(?:_|(\/)|^)([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" }
end