Class: Nio::Fmt
- Inherits:
-
Object
- Object
- Nio::Fmt
- Defined in:
- lib/nio/percent_fmt.rb
Instance Method Summary collapse
Instance Method Details
#percent(pc = true) ⇒ Object
12 13 14 |
# File 'lib/nio/percent_fmt.rb', line 12 def percent pc=true dup.percent! pc end |
#percent!(pc = true) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/nio/percent_fmt.rb', line 5 def percent! pc=true extend(Nio::PercentFmt) @percent = pc @mode = :sig self end |