Module | DocumentStyles::Rectangle
In: | lib/document_styles.rb

長方形を表現するモジュール。

### Methods

[] []=

### Public Instance methods

[](side)

[Source]

        # File lib/document_styles.rb, line 56
    56:     def [](side)
    57:       case side
    58:       when :top, :bottom, :left, :right
    59:         return @rectangle[side]
    60:       else
    61:         raise "Invalid side #{side.inspect}"
    62:       end
    63:     end

[]=(side, val)

[Source]

        # File lib/document_styles.rb, line 47
    47:     def []=(side, val)
    48:       case side
    49:       when :top, :bottom, :left, :right
    50:         @rectangle[side] = val
    51:       else
    52:         raise "Invalid side #{side.inspect}"
    53:       end
    54:     end

[Validate]