Class: Peony::Shell::Padding
- Inherits:
-
Object
- Object
- Peony::Shell::Padding
- Defined in:
- lib/peony/shell/basic.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #down ⇒ Object
-
#initialize ⇒ Padding
constructor
A new instance of Padding.
- #up ⇒ Object
Constructor Details
#initialize ⇒ Padding
Returns a new instance of Padding.
418 419 420 |
# File 'lib/peony/shell/basic.rb', line 418 def initialize @value = 0 end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
416 417 418 |
# File 'lib/peony/shell/basic.rb', line 416 def value @value end |
Instance Method Details
#down ⇒ Object
426 427 428 |
# File 'lib/peony/shell/basic.rb', line 426 def down @value -= 1 end |
#up ⇒ Object
422 423 424 |
# File 'lib/peony/shell/basic.rb', line 422 def up @value += 1 end |