Sha256: b39c4e374422fb8db779afdd32619a5149137d9e37d0bc1ca527ed6d38b6666d

Contents?: true

Size: 455 Bytes

Versions: 38

Compression:

Stored size: 455 Bytes

Contents

module RBeautify

  class BlockEnd

    attr_accessor :block_start, :offset, :match, :after_match

    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

    def end_offset
      offset + match.length
    end

    def end_can_also_be_start?
      block_start.block_matcher.end_can_also_be_start?
    end
  end

end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
knife-chop-0.12.18 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.12.17 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.12.03 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.11.12 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.9.5 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.9.4 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.9.2 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.9.1 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.9.0 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.8.3 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.8.2 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.8.0 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.7.8 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.7.2 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.7.1 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.7.0 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.6.7 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.5.15 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.4.1 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.4.0 lib/ruby-beautify/lib/ruby-beautify/block_end.rb