Sha256: 26a39a3295217937962e3e14889afd2b0090b8b6c0f427867cf661c7a4d96508
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
class Germinate::Variable < String attr_reader :name attr_reader :origin attr_reader :line def initialize(name, value, line, source_path, line_number) super(value.to_s) @name = name @line = line @origin = Germinate::Origin.new(source_path, line_number) end def update_source_line!(comment_prefix) line.replace(make_control_line(comment_prefix)) end private def make_control_line(comment_prefix) "#{comment_prefix}:SET: '#{name}', '#{self}'\n" end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
devver-germinate-1.2.0 | lib/germinate/variable.rb |
germinate-1.2.0 | lib/germinate/variable.rb |