File: generator.rb

package info (click to toggle)
ruby-rr 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,424 kB
  • sloc: ruby: 11,405; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require File.expand_path('../../generator', __FILE__)

module TestHelper
  class Generator
    include ::Generator

    attr_reader :project, :requires, :prelude

    def setup(project)
      super
      @project = project
      @requires = []
      @prelude = ""
    end

    def add_to_requires(path)
      @requires << path
    end

    def add_to_prelude(string)
      @prelude << string + "\n"
    end

    def call
    end
  end
end