Class: Statsample::Analysis::SuiteReportBuilder
- Inherits:
-
Suite
show all
- Defined in:
- lib/statsample/analysis/suitereportbuilder.rb
Instance Attribute Summary collapse
Attributes inherited from Suite
#block, #name, #output
Instance Method Summary
collapse
Methods inherited from Suite
#add_to_reportbuilder, #attach, #detach, #method_missing, #old_boxplot, #old_histogram, #old_scatterplot, #run, #scatterplot, #show_svg
Methods included from Shorthand
#cor, #cov, #dataset, #dominance_analysis, #dominance_analysis_bootstrap, #levene, #lr, #multiscale_analysis, #names, #pca, #polychoric, #principal_axis, #read_csv, #read_excel, rnorm, #scale_analysis, #scatterplot, #skill_scale_analysis, test_u, #tetrachoric, #vector
Constructor Details
#initialize(opts = Hash.new, &block) ⇒ SuiteReportBuilder
Returns a new instance of SuiteReportBuilder.
5
6
7
8
9
10
11
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 5
def initialize(opts=Hash.new,&block)
if !opts.is_a? Hash
opts={:name=>opts}
end
super(opts,&block)
@rb=opts[:rb] || ReportBuilder.new(:name=>name)
end
|
Instance Attribute Details
Returns the value of attribute rb.
4
5
6
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 4
def rb
@rb
end
|
Instance Method Details
#boxplot(*args) ⇒ Object
32
33
34
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 32
def boxplot(*args)
@rb.add(old_boxplot(*args))
end
|
23
24
25
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 23
def desc(d)
@rb.add(d)
end
|
#echo(*args) ⇒ Object
26
27
28
29
30
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 26
def echo(*args)
args.each do |a|
@rb.add(a)
end
end
|
#generate(filename) ⇒ Object
12
13
14
15
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 12
def generate(filename)
run if @block
@rb.save(filename)
end
|
#histogram(*args) ⇒ Object
35
36
37
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 35
def histogram(*args)
@rb.add(old_histogram(*args))
end
|
#summary(o) ⇒ Object
20
21
22
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 20
def summary(o)
@rb.add(o)
end
|
16
17
18
19
|
# File 'lib/statsample/analysis/suitereportbuilder.rb', line 16
def to_text
run if @block
@rb.to_text
end
|