Class: RakeGenData

Inherits:
Object
  • Object
show all
Defined in:
lib/yesman/rake_gen_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ RakeGenData

Returns a new instance of RakeGenData.



12
13
14
15
16
17
18
19
# File 'lib/yesman/rake_gen_data.rb', line 12

def initialize(args = {})
  params = ConfigProxy.new.params
  @source_dir = params[:source]
  @test_dir = params[:tests]
  @output_dir = params[:output]
  @project_name = params[:project_name]
  @extension = params[:extension]
end

Instance Attribute Details

#extensionObject (readonly)

Returns the value of attribute extension.



10
11
12
# File 'lib/yesman/rake_gen_data.rb', line 10

def extension
  @extension
end

#output_dirObject (readonly)

Returns the value of attribute output_dir.



8
9
10
# File 'lib/yesman/rake_gen_data.rb', line 8

def output_dir
  @output_dir
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



9
10
11
# File 'lib/yesman/rake_gen_data.rb', line 9

def project_name
  @project_name
end

#source_dirObject (readonly)

Returns the value of attribute source_dir.



6
7
8
# File 'lib/yesman/rake_gen_data.rb', line 6

def source_dir
  @source_dir
end

#test_dirObject (readonly)

Returns the value of attribute test_dir.



7
8
9
# File 'lib/yesman/rake_gen_data.rb', line 7

def test_dir
  @test_dir
end

Instance Method Details

#get_bindingObject



22
23
24
# File 'lib/yesman/rake_gen_data.rb', line 22

def get_binding
  binding
end