Sha256: 6ae84dc0258e84e3fad5201e1ef6b56fecf4df5b0246db933409a0f748f55bdd

Contents?: true

Size: 282 Bytes

Versions: 11

Compression:

Stored size: 282 Bytes

Contents

Symbol.class_eval do
  def <=> other
    self.to_s <=> other.to_s
  end
  
  def to_reader
    self
  end
  
  def to_writer
    "#{self}=".to_sym
  end
 
   def to_iv
    "@#{self}"
  end

  def + other
    (self.to_s + other.to_s).to_sym
  end
  
  def blank?; to_s.blank? end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_ext-0.4.23 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.22 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.21 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.20 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.19 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.18 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.17 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.16 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.15 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.14 lib/ruby_ext/core/symbol.rb
ruby_ext-0.4.13 lib/ruby_ext/core/symbol.rb