Class: RBS::Inline::Annotator::Writer::Action
- Inherits:
-
Object
- Object
- RBS::Inline::Annotator::Writer::Action
- Defined in:
- lib/rbs/inline/annotator/writer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(range:, text:) ⇒ Action
constructor
A new instance of Action.
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
#range ⇒ Object (readonly)
Returns the value of attribute range.
11 12 13 |
# File 'lib/rbs/inline/annotator/writer.rb', line 11 def range @range end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
11 12 13 |
# File 'lib/rbs/inline/annotator/writer.rb', line 11 def text @text end |