Permalink
Browse files

modify file tree

  • Loading branch information...
1 parent 1687a96 commit c56406be55eac35735d7c798909ecf2cf3c8ca1c @kachick committed Aug 21, 2012
Showing with 31 additions and 31 deletions.
  1. +2 −1 Manifest.txt
  2. +4 −12 README.rdoc
  3. +6 −4 example.rb → examples/README.rb
  4. +1 −0 lib/vertere.rb
  5. +1 −14 lib/vertere/ext.rb
  6. +17 −0 lib/vertere/objectextension.rb
View
@@ -3,9 +3,10 @@ LICENSE
History.rdoc
Manifest.txt
Rakefile
-example.rb
lib/vertere.rb
lib/vertere/version.rb
+lib/vertere/objectextension.rb
lib/vertere/ext.rb
test/test_helper.rb
test/test_vertere.rb
+examples/README.rb
View
@@ -1,11 +1,8 @@
= vertere
-code :: http://github.com/kachick/vertere
-gem :: http://rubygems.org/gems/vertere
-
== Description
-Provide a way of get wrapper objects for inverted comparisons
+Provide a way to get wrapper objects for inverted comparisons
== Features
@@ -24,7 +21,7 @@ Wrap below methods
* An approaching to invert comparisons # from [ruby-talk:392128]
- num_chars = ["0", "1", "9", "10", "11"]
+ num_chars = %w[0 1 9 10 11]
num_chars.grep(/0/) #=> ["0", "10"]
num_chars.grep(Veretere.invert(/0/)) #=> ["1", "9", "11"]
@@ -41,19 +38,14 @@ Wrap below methods
== Requirements
* Ruby 1.9.2 or later
-
- Focusing
-
- * 1.9.3-p194
- * 1.9.2-p290
== Installation
-* gem install vertere
+ gem install vertere
== License
-The MIT X11 License
+The MIT X License
Copyright (c) 2012 Kenichi Kamiya
@@ -1,12 +1,14 @@
-#!/usr/bin/ruby -w
+#!/usr/bin/env ruby
-require_relative 'lib/vertere'
+$VERBOSE = true
-num_chars = ["0", "1", "9", "10", "11"].freeze
+require_relative '../lib/vertere'
+
+num_chars = %w[0 1 9 10 11].freeze
p num_chars.grep(/0/) #=> ["0", "10"]
p(/0/ =~ '0') #=> 0
-require_relative 'lib/vertere/ext'
+require_relative '../lib/vertere/ext'
p num_chars.grep(/0/.for_!) #=> ["1", "9", "11"]
p(/0/.for_! =~ '0') #=> false
View
@@ -2,6 +2,7 @@
require 'delegate'
require_relative 'vertere/version'
+require_relative 'vertere/objectextension'
module Vertere
View
@@ -1,17 +1,4 @@
-module Vertere::ObjectExtension
-
- def for_vertere
- ::Vertere.for_object self
- end
-
- alias_method :for_!, :for_vertere
-
- def comparison_inverted?
- false
- end
-
-end
-
+require_relative 'objectextension'
class Object
@@ -0,0 +1,17 @@
+module Vertere
+
+ module ObjectExtension
+
+ def for_vertere
+ ::Vertere.for_object self
+ end
+
+ alias_method :for_!, :for_vertere
+
+ def comparison_inverted?
+ false
+ end
+
+ end
+
+end

0 comments on commit c56406b

Please sign in to comment.