Sha256: e55af3b89e1529e233b06688ef738614603b9aa3e5e03a3000ab4353122c1557
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
# ReportingCloud Ruby Wrapper # # Official wrapper (authored by Text Control GmbH, publisher of ReportingCloud) to access # ReportingCloud in Ruby. # # Go to http://www.reporting.cloud to learn more about ReportingCloud # Go to https://github.com/TextControl/txtextcontrol-reportingcloud-ruby for the # canonical source repository. # # License: https://raw.githubusercontent.com/TextControl/txtextcontrol-reportingcloud-ruby/master/LICENSE.md # # Copyright: © 2019 Text Control GmbH # Extensions to class String. # @author Thorsten Kummerow (@thomerow) class String # Removes the first and last characters from a string and returns the # manipulated string. # @return [String] The string without its first and last characters. def remove_first_and_last if self.length == 0 then return '' end result = self.dup result[0] = '' if result.length > 0 then result[result.length - 1] = '' end return result end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
txtextcontrol-reportingcloud-1.2.0 | lib/core_ext/string.rb |