class TwitterCldr::Transforms::RuleMatch
Attributes
rule[R]
side_match[R]
Public Class Methods
new(rule, side_match)
click to toggle source
# File lib/twitter_cldr/transforms/rule_match.rb, line 11 def initialize(rule, side_match) @rule = rule @side_match = side_match end
Public Instance Methods
<(other_match)
click to toggle source
# File lib/twitter_cldr/transforms/rule_match.rb, line 32 def <(other_match) rule.index < other_match.rule.index end
cursor_offset()
click to toggle source
# File lib/twitter_cldr/transforms/rule_match.rb, line 28 def cursor_offset rule.cursor_offset end
replacement()
click to toggle source
# File lib/twitter_cldr/transforms/rule_match.rb, line 24 def replacement rule.replacement_for(side_match) end
start()
click to toggle source
# File lib/twitter_cldr/transforms/rule_match.rb, line 16 def start side_match.start end
stop()
click to toggle source
# File lib/twitter_cldr/transforms/rule_match.rb, line 20 def stop side_match.stop end