README in rubymisc-0.1.0 vs README in rubymisc-0.2.0
- old
+ new
@@ -8,45 +8,46 @@
2 Usage
2.1 Rbm::Regex
- e1: puts Rbm::Regex.man
- e2: Rbm::Regex.email
- e3: Rbm::Regex.url
- e4: Rbm::Regex.zip
- e5: Rbm::Regex.ipv4
- e6: Rbm::Regex.mac_address
- e7: Rbm::Regex.hexcode
- e8: Rbm::Regex.usd
+ puts Rbm::Regex.man
+ Rbm::Regex.email
+ Rbm::Regex.url
+ Rbm::Regex.zip
+ Rbm::Regex.ipv4
+ Rbm::Regex.mac_address
+ Rbm::Regex.hexcode
+ Rbm::Regex.usd
+ Rbm::Regex.date_iso_8601 # yyyy-mm-dd
2.2 Object
#in?
- e9: 100.in? [1, 2, 3, 4, 5, 100] # => true
+ 100.in? [1, 2, 3, 4, 5, 100] # => true
#not functor
- e10: 100.not.instance_of? Fixnum # => false
+ 100.not.instance_of? Fixnum # => false
#and_try functor
- e11: nil.and_try.size # => nil
+ nil.and_try.size # => nil
#errors_with_message
- e12: begin
- raise 'Timeout socket'
- rescue errors_with_message /socket/
- p 'socket E'
- end
+ begin
+ raise 'Timeout socket'
+ rescue errors_with_message /socket/
+ p 'socket E'
+ end
2.3 Integer
#percent_of
- e13: 50.percent_of(100) # => 50.0
+ 50.percent_of(100) # => 50.0
2.4 String
#^, #xor
- e14: 'rubymisc'.xor 'test' # => "\u0006\u0010\u0011\r\u0019\f\u0000\u0017"
+ 'rubymisc'.xor 'test' # => "\u0006\u0010\u0011\r\u0019\f\u0000\u0017"
2.5 ActiveRecord::Base
.validates_url
.validates_email