Class: TypeProf::Task

Inherits:
Rake::TaskLib
  • Object
show all
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

Instance Method Summary collapse

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
  read_options
  define_tasks
end

Instance Attribute Details

#collectionObject

None by default. See also TypeProf’s --collection option.



33
34
35
# File 'lib/typeprof/task.rb', line 33

def collection
  @collection
end

#exclude_dirObject

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

#filesObject

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

#includeObject

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_dirObject

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

#outfileObject

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

#requireObject

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