Module: RType::Helper::RubyCompareable

Defined in:
lib/r_type/helper/ruby_compareable.rb

Instance Method Summary collapse

Instance Method Details

#==(obj) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/r_type/helper/ruby_compareable.rb', line 2

def == obj
  if obj.is_a?(RType::Helper::Compareable)
    to_ruby == obj.to_ruby
  else
    super
  end
end