Class: TypeProf::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- TypeProf::Task
- Defined in:
- lib/typeprof/task.rb
Constant Summary collapse
- VERSION =
"0.2.0"- LOGGER =
Logger.new($stderr)
- TYPEPROF0_30_0 =
Gem::Version.new(TypeProf::VERSION) >= "0.30.0"
Instance Attribute Summary collapse
-
#collection ⇒ Object
None by default.
-
#exclude_dir ⇒ Object
Deprecated in TypeProf v0.30.0.
-
#exclude_untyped ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
-
#files ⇒ Object
Target files.
-
#include ⇒ Object
Deprecated in TypeProf v0.30.0.
-
#include_dir ⇒ Object
Deprecated in TypeProf v0.30.0.
-
#max_iteration ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
-
#max_second ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
-
#outfile ⇒ Object
Output file path.
-
#quiet ⇒ Object
writeonly
Unspecified by default.
-
#require ⇒ Object
Deprecated in TypeProf v0.30.0.
-
#show_errors ⇒ Object
writeonly
Unspecified by default.
-
#show_parameter_names ⇒ Object
writeonly
Unspecified by default.
-
#show_source_locations ⇒ Object
writeonly
Unspecified by default.
-
#show_untyped ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
-
#show_version ⇒ Object
writeonly
Unspecified by default.
-
#stub_execution ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
-
#type_depth_limit ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
-
#union_width_limit ⇒ Object
writeonly
Deprecated in TypeProf v0.30.0.
Instance Method Summary collapse
-
#initialize(name = :typeprof) ⇒ Task
constructor
:yield: self.
Constructor Details
#initialize(name = :typeprof) ⇒ Task
:yield: self
87 88 89 90 91 92 93 94 |
# File 'lib/typeprof/task.rb', line 87 def initialize(name = :typeprof) # :yield: self super() @name = name defaults block_given? and yield self define_tasks end |
Instance Attribute Details
#collection ⇒ Object
None by default. See also TypeProf’s --collection option.
33 34 35 |
# File 'lib/typeprof/task.rb', line 33 def collection @collection end |
#exclude_dir ⇒ Object
Deprecated in TypeProf v0.30.0. None by default. See also TypeProf’s --exclude-dir option.
41 42 43 |
# File 'lib/typeprof/task.rb', line 41 def exclude_dir @exclude_dir end |
#exclude_untyped=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --exclude-untyped option.
45 46 47 |
# File 'lib/typeprof/task.rb', line 45 def exclude_untyped=(value) @exclude_untyped = value end |
#files ⇒ Object
Target files. By default, files under one of the require paths.
15 16 17 |
# File 'lib/typeprof/task.rb', line 15 def files @files end |
#include ⇒ Object
Deprecated in TypeProf v0.30.0. None by default. See also TypeProf’s -I option.
26 27 28 |
# File 'lib/typeprof/task.rb', line 26 def include @include end |
#include_dir ⇒ Object
Deprecated in TypeProf v0.30.0. None by default. See also TypeProf’s --include-dir option.
37 38 39 |
# File 'lib/typeprof/task.rb', line 37 def include_dir @include_dir end |
#max_iteration=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --max-iteration option.
73 74 75 |
# File 'lib/typeprof/task.rb', line 73 def max_iteration=(value) @max_iteration = value end |
#max_second=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --max-second option.
69 70 71 |
# File 'lib/typeprof/task.rb', line 69 def max_second=(value) @max_second = value end |
#outfile ⇒ Object
Output file path. sig/GEM_NAME.gen.rbs by default. See also TypeProf’s -o option.
19 20 21 |
# File 'lib/typeprof/task.rb', line 19 def outfile @outfile end |
#quiet=(value) ⇒ Object (writeonly)
Unspecified by default. See also TypeProf’s --quiet option.
22 23 24 |
# File 'lib/typeprof/task.rb', line 22 def quiet=(value) @quiet = value end |
#require ⇒ Object
Deprecated in TypeProf v0.30.0. None by default. See also TypeProf’s -r option.
30 31 32 |
# File 'lib/typeprof/task.rb', line 30 def require @require end |
#show_errors=(value) ⇒ Object (writeonly)
Unspecified by default. See also TypeProf’s --show-errors (or --verbose) option.
53 54 55 |
# File 'lib/typeprof/task.rb', line 53 def show_errors=(value) @show_errors = value end |
#show_parameter_names=(value) ⇒ Object (writeonly)
Unspecified by default. See also TypeProf’s --show-parameter-names option.
61 62 63 |
# File 'lib/typeprof/task.rb', line 61 def show_parameter_names=(value) @show_parameter_names = value end |
#show_source_locations=(value) ⇒ Object (writeonly)
Unspecified by default. See also TypeProf’s --show-source-locations option.
65 66 67 |
# File 'lib/typeprof/task.rb', line 65 def show_source_locations=(value) @show_source_locations = value end |
#show_untyped=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --show-untyped option.
57 58 59 |
# File 'lib/typeprof/task.rb', line 57 def show_untyped=(value) @show_untyped = value end |
#show_version=(value) ⇒ Object (writeonly)
Unspecified by default. See also TypeProf’s --show-typeprof-version option.
49 50 51 |
# File 'lib/typeprof/task.rb', line 49 def show_version=(value) @show_version = value end |
#stub_execution=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --stub-execution option.
77 78 79 |
# File 'lib/typeprof/task.rb', line 77 def stub_execution=(value) @stub_execution = value end |
#type_depth_limit=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --type-depth-limit option.
81 82 83 |
# File 'lib/typeprof/task.rb', line 81 def type_depth_limit=(value) @type_depth_limit = value end |
#union_width_limit=(value) ⇒ Object (writeonly)
Deprecated in TypeProf v0.30.0. Unspecified by default. See also TypeProf’s --union-width-limit option.
85 86 87 |
# File 'lib/typeprof/task.rb', line 85 def union_width_limit=(value) @union_width_limit = value end |