Sha256: 4a955fbf8fa1b99515595cdd3be05a9af7445eeeae915fef98296b8c11ba172b
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
module Mutant class Node attr_reader :item, :copy def initialize(item) @item = item @copy = item.clone end def line item.line end def from @from ||= Formatter.new(item) end def to @to ||= Formatter.new(copy) end def swap @copy = Literal.new(copy).swap end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.1.1 | lib/mutant/node.rb |
mutant-0.1.0 | lib/mutant/node.rb |