diff options
Diffstat (limited to 'lib/complex.rb')
-rw-r--r-- | lib/complex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/complex.rb b/lib/complex.rb index 8832f17f82..516bbbfd89 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -400,10 +400,10 @@ class Complex < Numeric I = Complex(0,1) # The real part of a complex number. - attr :real + attr_reader :real # The imaginary part of a complex number. - attr :image + attr_reader :image alias imag image end |