Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/ms/ident/pepxml.rb
Instance Method Summary collapse
-
#to_plus_minus_string ⇒ Object
returns a string with a + or - on the front.
Instance Method Details
#to_plus_minus_string ⇒ Object
returns a string with a + or - on the front
9 10 11 12 13 14 15 |
# File 'lib/ms/ident/pepxml.rb', line 9 def to_plus_minus_string if self >= 0 '+' << self.to_s else self.to_s end end |