class RBeautify::BlockEnd
Attributes
after_match[RW]
block_start[RW]
match[RW]
offset[RW]
Public Class Methods
new(block_start, offset, match, after_match)
click to toggle source
# File lib/ruby-beautify/lib/ruby-beautify/block_end.rb, line 7 def initialize(block_start, offset, match, after_match) self.block_start = block_start self.offset = offset self.match = match self.after_match = after_match end
Public Instance Methods
end_can_also_be_start?()
click to toggle source
# File lib/ruby-beautify/lib/ruby-beautify/block_end.rb, line 18 def end_can_also_be_start? block_start.block_matcher.end_can_also_be_start? end
end_offset()
click to toggle source
# File lib/ruby-beautify/lib/ruby-beautify/block_end.rb, line 14 def end_offset offset + match.length end