Class: Rvim::Folds::Fold
- Inherits:
-
Struct
- Object
- Struct
- Rvim::Folds::Fold
- Defined in:
- lib/rvim/folds.rb
Instance Attribute Summary collapse
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#end_line ⇒ Object
Returns the value of attribute end_line.
-
#level ⇒ Object
Returns the value of attribute level.
-
#start_line ⇒ Object
Returns the value of attribute start_line.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Fold
constructor
A new instance of Fold.
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
#closed ⇒ Object
Returns the value of attribute closed
5 6 7 |
# File 'lib/rvim/folds.rb', line 5 def closed @closed end |
#end_line ⇒ Object
Returns the value of attribute end_line
5 6 7 |
# File 'lib/rvim/folds.rb', line 5 def end_line @end_line end |
#level ⇒ Object
Returns the value of attribute level
5 6 7 |
# File 'lib/rvim/folds.rb', line 5 def level @level end |
#start_line ⇒ Object
Returns the value of attribute start_line
5 6 7 |
# File 'lib/rvim/folds.rb', line 5 def start_line @start_line end |