scan_mark(x, y) Instance Public methods
scan(pattern) => String Instance Public methods Tries to match with pattern at the current position. If there's a match, the scanner advances the âscan pointerâ and returns the matched string. Otherwise, the scanner returns nil. s = StringScanner.new('test string') p s.scan(/\w+/) # -> "test" p s.scan(/\w+/) # -> nil p s.scan(/\s+/) # -> " " p s.scan(/\w+/) # -> "string" p s.scan(/./) # -> nil
[](index) Instance Public methods Returns the +index+th prime number. index is a 0-based index.
path_to_audio(source, options = {}) Instance Public methods Alias for: audio_path
new_comment(comment) Instance Public methods Creates a comment with the correct format
color_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âcolorâ. color_field("car", "color") # => <input id="car_color" name="car[color]" type="color" value="#000000" />
dlineinfo(index) Instance Public methods
gunzip_file(file, dat) Class Public methods
new(parent,*args) Class Public methods
localize(*args) Instance Public methods Delegates to I18n.localize with no additional functionality. See rubydoc.info/github/svenfuchs/i18n/master/I18n/Backend/Base:localize for more information. l
Page 324 of 2275