Class: Dms::Emitter::NodeComments

Inherits:
Struct
  • Object
show all
Defined in:
lib/dms/emitter.rb

Overview

Per-node bucket of attached comments by position.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#floatingObject

Returns the value of attribute floating

Returns:

  • (Object)

    the current value of floating



79
80
81
# File 'lib/dms/emitter.rb', line 79

def floating
  @floating
end

#innerObject

Returns the value of attribute inner

Returns:

  • (Object)

    the current value of inner



79
80
81
# File 'lib/dms/emitter.rb', line 79

def inner
  @inner
end

#leadingObject

Returns the value of attribute leading

Returns:

  • (Object)

    the current value of leading



79
80
81
# File 'lib/dms/emitter.rb', line 79

def leading
  @leading
end

#trailingObject

Returns the value of attribute trailing

Returns:

  • (Object)

    the current value of trailing



79
80
81
# File 'lib/dms/emitter.rb', line 79

def trailing
  @trailing
end

Class Method Details

.emptyObject



80
81
82
# File 'lib/dms/emitter.rb', line 80

def self.empty
  new([], [], [], [])
end