class AttributedString::Attribute
Attributes
data[R]
range[R]
Public Class Methods
new(range, data)
click to toggle source
# File lib/attributed_string/attribute.rb, line 6 def initialize(range, data) @range = range @data = data end
Public Instance Methods
move(offset)
click to toggle source
# File lib/attributed_string/attribute.rb, line 11 def move(offset) @range = Range.new(@range.begin + offset, @range.end + offset, @range.exclude_end?) end