[Groonga-commit] ranguba/chupa-text at d7d37bf [master] Remove needless optimization

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 17 23:33:39 JST 2014


Kouhei Sutou	2014-02-17 23:33:39 +0900 (Mon, 17 Feb 2014)

  New Revision: d7d37bff26609a18bb5bbedaa4c9c2e1567e7727
  https://github.com/ranguba/chupa-text/commit/d7d37bff26609a18bb5bbedaa4c9c2e1567e7727

  Message:
    Remove needless optimization

  Modified files:
    lib/chupa-text/attributes.rb

  Modified: lib/chupa-text/attributes.rb (+2 -3)
===================================================================
--- lib/chupa-text/attributes.rb    2014-02-17 23:30:33 +0900 (fb27f59)
+++ lib/chupa-text/attributes.rb    2014-02-17 23:33:39 +0900 (192a8bb)
@@ -25,7 +25,6 @@ module ChupaText
 
     def initialize
       super
-      @members = members
       @extra_data = {}
     end
 
@@ -57,7 +56,7 @@ module ChupaText
     # @return [Object] The attribute value.
     def [](name)
       name = normalize_name(name)
-      if****@membe*****?(name)
+      if members.include?(name)
         super
       else
         @extra_data[name]
@@ -70,7 +69,7 @@ module ChupaText
     # @param [Object] value The attribute value.
     def []=(name, value)
       name = normalize_name(name)
-      if****@membe*****?(name)
+      if members.include?(name)
         send("#{name}=", value)
       else
         @extra_data[name] = value
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index