Sha256: 69f0046c376c770b0be2eb19ed79916d60bd9439f5e4026ca20b014e2de4dd17
Contents?: true
Size: 536 Bytes
Versions: 5
Compression:
Stored size: 536 Bytes
Contents
require 'pathname' module Mate class TmProperties attr_reader :dir, :file def initialize(dir) @dir = Pathname(dir).expand_path @file = @dir + '.tm_properties' end def save ignores = Ignores.new(dir) lines = if file.exist? file.readlines.reject do |line| line =~ Ignores::GENERATED_R end else [] end @file.open('w') do |f| f.puts ignores.lines f.puts lines end end end end require 'mate/tm_properties/ignores'
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mate-2.1.1 | lib/mate/tm_properties.rb |
mate-2.1.0 | lib/mate/tm_properties.rb |
mate-2.0.2 | lib/mate/tm_properties.rb |
mate-2.0.1 | lib/mate/tm_properties.rb |
mate-2.0.0 | lib/mate/tm_properties.rb |