Class: Menkar::Indent

Inherits:
Object
  • Object
show all
Defined in:
sig/menkar.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#style ⇒ :tab, :space (readonly)

Returns the value of attribute style.

Returns:

  • (:tab, :space)


10
11
12
# File 'sig/menkar.rbs', line 10

def style
  @style
end

#width ⇒ Integer? (readonly)

Returns the value of attribute width.

Returns:

  • (Integer, nil)


11
12
13
# File 'sig/menkar.rbs', line 11

def width
  @width
end

Class Method Details

.new(style, width) ⇒ Indent .new(style:, width:) ⇒ Indent

Overloads:

  • .new(style, width) ⇒ Indent

    Parameters:

    • style (:tab, :space)
    • width (Integer, nil)

    Returns:

  • .new(style:, width:) ⇒ Indent

    Parameters:

    • style: (:tab, :space)
    • width: (Integer, nil)

    Returns:



12
13
# File 'sig/menkar.rbs', line 12

def self.new: (:tab | :space style, Integer? width) -> Indent
| (style: :tab | :space, width: Integer?) -> Indent

Instance Method Details

#with ⇒ Indent

Parameters:

  • style: (:tab, :space)
  • width: (Integer, nil)

Returns:



14
# File 'sig/menkar.rbs', line 14

def with: (?style: :tab | :space, ?width: Integer?) -> Indent