Class List Method List File List

# Class: Terminal::Table::Style

Inherits:
  Object
  - Object
  - Terminal::Table::Style
  show all
Defined in:
  lib/common/hacks.rb

## Constant Summary

@@defaults =

      {
        :border_x => "-", :border_y => "|", :border_i => "+",
        :padding_left => 1, :padding_right => 1,
        :margin_left => '',
        :width => nil, :alignment => nil
      }

## Instance Attribute Summary (collapse)

- - (Object) alignment

  Returns the value of attribute alignment.

- - (Object) border_i

  Returns the value of attribute border_i.

- - (Object) border_x

  Returns the value of attribute border_x.

- - (Object) border_y

  Returns the value of attribute border_y.

- - (Object) margin_left

  Returns the value of attribute margin_left.

- - (Object) padding_left

  Returns the value of attribute padding_left.

- - (Object) padding_right

  Returns the value of attribute padding_right.

- - (Object) width

  Returns the value of attribute width.

## Instance Attribute Details

### - (`Object`) alignment

Returns the value of attribute alignment

    119
    120
    121
    # File 'lib/common/hacks.rb', line 119

    def alignment
      @alignment
    end

### - (`Object`) border_i

Returns the value of attribute border_i

    113
    114
    115
    # File 'lib/common/hacks.rb', line 113

    def border_i
      @border_i
    end

### - (`Object`) border_x

Returns the value of attribute border_x

    111
    112
    113
    # File 'lib/common/hacks.rb', line 111

    def border_x
      @border_x
    end

### - (`Object`) border_y

Returns the value of attribute border_y

    112
    113
    114
    # File 'lib/common/hacks.rb', line 112

    def border_y
      @border_y
    end

### - (`Object`) margin_left

Returns the value of attribute margin_left

    110
    111
    112
    # File 'lib/common/hacks.rb', line 110

    def margin_left
      @margin_left
    end

### - (`Object`) padding_left

Returns the value of attribute padding_left

    115
    116
    117
    # File 'lib/common/hacks.rb', line 115

    def padding_left
      @padding_left
    end

### - (`Object`) padding_right

Returns the value of attribute padding_right

    116
    117
    118
    # File 'lib/common/hacks.rb', line 116

    def padding_right
      @padding_right
    end

### - (`Object`) width

Returns the value of attribute width

    118
    119
    120
    # File 'lib/common/hacks.rb', line 118

    def width
      @width
    end