Class: Ruvi::LineSlice
- Inherits:
-
Struct
- Object
- Struct
- Ruvi::LineSlice
- Includes:
- NewLineAttributes
- Defined in:
- lib/selections.rb,
lib/selections.rb
Instance Attribute Summary collapse
-
#x1 ⇒ Object
Returns the value of attribute x1.
-
#x2 ⇒ Object
Returns the value of attribute x2.
-
#y ⇒ Object
Returns the value of attribute y.
Attributes included from NewLineAttributes
#newline_at_end, #newline_at_start
Instance Method Summary collapse
Methods included from NewLineAttributes
Instance Attribute Details
#x1 ⇒ Object
Returns the value of attribute x1
5 6 7 |
# File 'lib/selections.rb', line 5 def x1 @x1 end |
#x2 ⇒ Object
Returns the value of attribute x2
5 6 7 |
# File 'lib/selections.rb', line 5 def x2 @x2 end |
#y ⇒ Object
Returns the value of attribute y
5 6 7 |
# File 'lib/selections.rb', line 5 def y @y end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/selections.rb', line 8 def to_s "#{y}:#{x1}-#{x2}#{newline_at_start ? "S" : ""}#{newline_at_end ? "E" : ""}" end |