Class: Rvim::Folds::Fold

Inherits:
Struct
  • Object
show all
Defined in:
lib/rvim/folds.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Fold

Returns a new instance of Fold.



6
7
8
9
# File 'lib/rvim/folds.rb', line 6

def initialize(*args)
  super
  self.level ||= 1
end

Instance Attribute Details

#closedObject

Returns the value of attribute closed

Returns:

  • (Object)

    the current value of closed



5
6
7
# File 'lib/rvim/folds.rb', line 5

def closed
  @closed
end

#end_lineObject

Returns the value of attribute end_line

Returns:

  • (Object)

    the current value of end_line



5
6
7
# File 'lib/rvim/folds.rb', line 5

def end_line
  @end_line
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



5
6
7
# File 'lib/rvim/folds.rb', line 5

def level
  @level
end

#start_lineObject

Returns the value of attribute start_line

Returns:

  • (Object)

    the current value of start_line



5
6
7
# File 'lib/rvim/folds.rb', line 5

def start_line
  @start_line
end