Sha256: f26edf9000136a27be1370fb87d0c0e77a2925aab5093ad34dad151b2c633f6d

Contents?: true

Size: 234 Bytes

Versions: 6

Compression:

Stored size: 234 Bytes

Contents

class Symbol
  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
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ruby-ext-0.2.3 lib/ruby_ext/symbol.rb
ruby-ext-0.2.2 lib/ruby_ext/symbol.rb
ruby-ext-0.2.1 lib/ruby_ext/symbol.rb
ruby-ext-0.2.0 lib/ruby_ext/symbol.rb
RubyExt-0.1.1 lib/RubyExt/symbol.rb
RubyExt-0.1.2 lib/RubyExt/symbol.rb