Sha256: d53430adc83876d377b9029ee3bdbea97bf766cb033a9175905a0b3018535346

Contents?: true

Size: 269 Bytes

Versions: 81

Compression:

Stored size: 269 Bytes

Contents

module Ruco
  class Position < Array
    def initialize(line, column)
      super([line, column])
    end

    def line=(x)
      self[0] = x
    end

    def column=(x)
      self[1] = x
    end

    alias_method :line, :first
    alias_method :column, :last
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
ruco-0.4.0 lib/ruco/position.rb
ruco-0.3.0 lib/ruco/position.rb
ruco-0.2.23 lib/ruco/position.rb
ruco-0.2.22 lib/ruco/position.rb
ruco-0.2.21 lib/ruco/position.rb
ruco-0.2.20 lib/ruco/position.rb
ruco-0.2.19 lib/ruco/position.rb
ruco-0.2.18 lib/ruco/position.rb
ruco-0.2.17 lib/ruco/position.rb
ruco-0.2.16 lib/ruco/position.rb
ruco-0.2.15 lib/ruco/position.rb
ruco-0.2.14 lib/ruco/position.rb
ruco-0.2.13 lib/ruco/position.rb
ruco-0.2.12 lib/ruco/position.rb
ruco-0.2.11 lib/ruco/position.rb
ruco-0.2.10 lib/ruco/position.rb
ruco-0.2.9 lib/ruco/position.rb
ruco-0.2.8 lib/ruco/position.rb
ruco-0.2.7 lib/ruco/position.rb
ruco-0.2.6 lib/ruco/position.rb