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.3.7 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.6 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.5 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.4 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.3 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.2 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.0 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.3.1 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.2.11 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.2.9 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.2.7 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.2.8 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
knife-chop-0.2.6 lib/ruby-beautify/lib/ruby-beautify/block_end.rb
ruby-beautify-0.92.2 lib/ruby-beautify/block_end.rb
ruby-beautify-0.92.1 lib/ruby-beautify/block_end.rb
ruby-beautify-0.92.0 lib/ruby-beautify/block_end.rb
ruby-beautify-0.91.0 lib/ruby-beautify/block_end.rb
ruby-beautify-0.9.0 lib/rbeautify/block_end.rb