String extensions

nardele salomon
Fri, 29 Nov 2013 16:39:50 -0000

I started project to create a library of  basic functions (or
''helpers'' as
you wish) .

The start with *ds_string <http://rubygems.org/gems/ds_string>*.   want to
 contribute:  was already made available at
rubygem.org<http://rubygems.org/gems/ds_string>

Has two basic functions:

"A".times(3) => "AAA" (like "A" * 3 )
"A".times(3) do |s| "#{s}-" end  => "A-A-A-"
"1".to_b  => true
"yes".to_b => true

=)
Nardele Salomon

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/bbcfa543-9824-43ba-8c47-42cf3fffd791%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.