Class: DSP::BreakpointLocation
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface BreakpointLocation {
/** Start line of breakpoint location. */
line: number;
/** Optional start column of breakpoint location. */
column?: number;
/** Optional end line of breakpoint location if the location covers a range. */
endLine?: number;
/** Optional end column of breakpoint location if the location covers a range. */
endColumn?: number;
}
Instance Attribute Summary collapse
-
#column ⇒ Object
type: number # type: number # type: number # type: number.
-
#endColumn ⇒ Object
type: number # type: number # type: number # type: number.
-
#endLine ⇒ Object
type: number # type: number # type: number # type: number.
-
#line ⇒ Object
type: number # type: number # type: number # type: number.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ BreakpointLocation
constructor
A new instance of BreakpointLocation.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ BreakpointLocation
Returns a new instance of BreakpointLocation.
4152 4153 4154 4155 |
# File 'lib/dsp/dsp_protocol.rb', line 4152 def initialize(initial_hash = nil) super @optional_method_names = %i[column endLine endColumn] end |
Instance Attribute Details
#column ⇒ Object
type: number # type: number # type: number # type: number
4150 4151 4152 |
# File 'lib/dsp/dsp_protocol.rb', line 4150 def column @column end |
#endColumn ⇒ Object
type: number # type: number # type: number # type: number
4150 4151 4152 |
# File 'lib/dsp/dsp_protocol.rb', line 4150 def endColumn @endColumn end |
#endLine ⇒ Object
type: number # type: number # type: number # type: number
4150 4151 4152 |
# File 'lib/dsp/dsp_protocol.rb', line 4150 def endLine @endLine end |
#line ⇒ Object
type: number # type: number # type: number # type: number
4150 4151 4152 |
# File 'lib/dsp/dsp_protocol.rb', line 4150 def line @line end |
Instance Method Details
#from_h!(value) ⇒ Object
4157 4158 4159 4160 4161 4162 4163 4164 |
# File 'lib/dsp/dsp_protocol.rb', line 4157 def from_h!(value) value = {} if value.nil? self.line = value['line'] self.column = value['column'] self.endLine = value['endLine'] self.endColumn = value['endColumn'] self end |