Sha256: bd85ded95ec08f42d4ef52b7f2a440c9019e7122fc941baa6aa2252839a2d0c1

Contents?: true

Size: 544 Bytes

Versions: 11

Compression:

Stored size: 544 Bytes

Contents

#--
# truth.rb - Import truth into rant ;)
#
# Copyright (C) 2005 Stefan Lang <langstefan@gmx.at>

module Rant
    module Node
	def %(desc)
	    @description = case @description
	    when nil: desc
	    when /\n$/: @description + desc
	    else "#@description\n#{desc}"
	    end
	    self
	end
    end
    class RacFileList
	def %(fu_sym)
	    @rac.cx.sys.send(fu_sym, to_ary)
	end
    end
end
module RantContext
    def drag(name, *args, &block)
	import(name.to_s.downcase)
	gen(::Rant::Generators.const_get(name), *args, &block)
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rant-0.3.8 lib/rant/import/truth.rb
rant-0.4.2 lib/rant/import/truth.rb
rant-0.4.4 lib/rant/import/truth.rb
rant-0.4.6 lib/rant/import/truth.rb
rant-0.4.8 lib/rant/import/truth.rb
rant-0.5.0 lib/rant/import/truth.rb
rant-0.5.2 lib/rant/import/truth.rb
rant-0.5.4 lib/rant/import/truth.rb
rant-0.5.6 lib/rant/import/truth.rb
rant-0.4.0 lib/rant/import/truth.rb
rant-0.5.7 lib/rant/import/truth.rb