Class: Peony::Shell::Padding

Inherits:
Object
  • Object
show all
Defined in:
lib/peony/shell/basic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePadding

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

#valueObject

Returns the value of attribute value.



416
417
418
# File 'lib/peony/shell/basic.rb', line 416

def value
  @value
end

Instance Method Details

#downObject



426
427
428
# File 'lib/peony/shell/basic.rb', line 426

def down
  @value -= 1
end

#upObject



422
423
424
# File 'lib/peony/shell/basic.rb', line 422

def up
  @value += 1
end