Class: RBS::Inline::Annotator::Writer::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs/inline/annotator/writer.rb

Direct Known Subclasses

InsertAfter, InsertBefore, Replace

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range:, text:) ⇒ Action

Returns a new instance of Action.



13
14
15
16
# File 'lib/rbs/inline/annotator/writer.rb', line 13

def initialize(range:, text:)
  @range = range
  @text = text
end

Instance Attribute Details

#rangeObject (readonly)

Returns the value of attribute range.



11
12
13
# File 'lib/rbs/inline/annotator/writer.rb', line 11

def range
  @range
end

#textObject (readonly)

Returns the value of attribute text.



11
12
13
# File 'lib/rbs/inline/annotator/writer.rb', line 11

def text
  @text
end