Class | DocumentStyles::BorderWidth
In: | lib/document_styles.rb
Parent: | Object

ボーダー幅のモデル。

### Methods

common_width new

### Included Modules

Rectangle

### Public Class methods

new()

[Source]

        # File lib/document_styles.rb, line 70
    70:     def initialize
    71:       @rectangle = {
    72:         :top    => 0.2,
    73:         :bottom => 0.2,
    74:         :left   => 0.2,
    75:         :right  => 0.2
    76:       }
    77:     end

### Public Instance methods

common_width()

[Source]

        # File lib/document_styles.rb, line 79
    79:     def common_width
    80:       if (@rectangle[:top] == @rectangle[:bottom]) && (@rectangle[:top] == @rectangle[:right]) && (@rectangle[:top] == @rectangle[:left])
    81:         return @rectangle[:top]
    82:       else
    83:         return nil
    84:       end
    85:     end

[Validate]