Sha256: eae756e368cdd0dcd6d7d0985123fcfe2dfc4296dc7fa0bdb9bc3d48b4297174

Contents?: true

Size: 288 Bytes

Versions: 29

Compression:

Stored size: 288 Bytes

Contents

module Shaddox
	class Task
		attr_accessor :block, :deps
		def initialize(block, deps)
			@block = block
			@deps = [deps].flatten
		end

		def to_source
			require 'sourcify'
			if @block
				@block.to_source(:strip_enclosure => true)
			else
				"# Empty block #"
			end
		end
	end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shaddox-0.0.10 lib/shaddox/task.rb
shaddox-0.0.9 lib/shaddox/task.rb
shaddox-0.0.8 lib/shaddox/task.rb
shaddox-0.0.7 lib/shaddox/task.rb
shaddox-0.0.6 lib/shaddox/task.rb
shaddox-0.0.5 lib/shaddox/task.rb
shaddox-0.0.4 lib/shaddox/task.rb
shaddox-0.0.3 lib/shaddox/task.rb
shaddox-0.0.2 lib/shaddox/task.rb