Class: RakeGenData
- Inherits:
-
Object
- Object
- RakeGenData
- Defined in:
- lib/yesman/rake_gen_data.rb
Instance Attribute Summary collapse
-
#extension ⇒ Object
readonly
Returns the value of attribute extension.
-
#output_dir ⇒ Object
readonly
Returns the value of attribute output_dir.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#source_dir ⇒ Object
readonly
Returns the value of attribute source_dir.
-
#test_dir ⇒ Object
readonly
Returns the value of attribute test_dir.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(args = {}) ⇒ RakeGenData
constructor
A new instance of RakeGenData.
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
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
10 11 12 |
# File 'lib/yesman/rake_gen_data.rb', line 10 def extension @extension end |
#output_dir ⇒ Object (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_name ⇒ Object (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_dir ⇒ Object (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_dir ⇒ Object (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_binding ⇒ Object
22 23 24 |
# File 'lib/yesman/rake_gen_data.rb', line 22 def get_binding binding end |