Sha256: 570b81b36fe3cfe03d84122537240cefe181002c0ea633569353f8341afd7174

Contents?: true

Size: 226 Bytes

Versions: 3

Compression:

Stored size: 226 Bytes

Contents

module M
  class Testable
    attr_accessor :file
    attr_reader :line

    def initialize(file = "", line = nil)
      @file = file
      @line = line
    end

    def line=(line)
      @line ||= line.to_i
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
m-1.4.2 lib/m/testable.rb
m-1.4.0 lib/m/testable.rb
m-1.3.4 lib/m/testable.rb