Sha256: a1030a7c81a070681ea0c2e3d17b9b7bf97d654650abe2461f6f3bbc2c18f1e8
Contents?: true
Size: 973 Bytes
Versions: 2
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: © 2017 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
txtextcontrol-reportingcloud-1.1.1 | lib/core_ext/string.rb |
txtextcontrol-reportingcloud-1.0.3 | lib/core_ext/string.rb |