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.30 lib/shaddox/task.rb
shaddox-0.0.29 lib/shaddox/task.rb
shaddox-0.0.28 lib/shaddox/task.rb
shaddox-0.0.27 lib/shaddox/task.rb
shaddox-0.0.26 lib/shaddox/task.rb
shaddox-0.0.25 lib/shaddox/task.rb
shaddox-0.0.24 lib/shaddox/task.rb
shaddox-0.0.23 lib/shaddox/task.rb
shaddox-0.0.22 lib/shaddox/task.rb
shaddox-0.0.21 lib/shaddox/task.rb
shaddox-0.0.20 lib/shaddox/task.rb
shaddox-0.0.19 lib/shaddox/task.rb
shaddox-0.0.18 lib/shaddox/task.rb
shaddox-0.0.17 lib/shaddox/task.rb
shaddox-0.0.16 lib/shaddox/task.rb
shaddox-0.0.15 lib/shaddox/task.rb
shaddox-0.0.14 lib/shaddox/task.rb
shaddox-0.0.13 lib/shaddox/task.rb
shaddox-0.0.12 lib/shaddox/task.rb
shaddox-0.0.11 lib/shaddox/task.rb