Class: Cody::Dsl::Base
- Inherits:
-
Object
- Object
- Cody::Dsl::Base
- Defined in:
- lib/cody/dsl/base.rb
Instance Attribute Summary collapse
-
#full_project_name ⇒ Object
readonly
Returns the value of attribute full_project_name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#auto_camelize(data) ⇒ Object
In v1.0.0 defaults to not auto-camelize.
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 9 10 |
# File 'lib/cody/dsl/base.rb', line 4 def initialize(={}) @options = @project_name = [:project_name] @type = [:type] @full_project_name = [:full_project_name] # includes -development at the end @properties = default_properties # defaults make project.rb simpler end |
Instance Attribute Details
#full_project_name ⇒ Object (readonly)
Returns the value of attribute full_project_name.
3 4 5 |
# File 'lib/cody/dsl/base.rb', line 3 def full_project_name @full_project_name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/cody/dsl/base.rb', line 3 def @options end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
3 4 5 |
# File 'lib/cody/dsl/base.rb', line 3 def project_name @project_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/cody/dsl/base.rb', line 3 def type @type end |