Class: PicoApi::Generators::ProjectNameDataMapper
- Inherits:
-
Object
- Object
- PicoApi::Generators::ProjectNameDataMapper
- Defined in:
- lib/pico_api/generators/project_name_data_mapper.rb
Instance Attribute Summary collapse
-
#camelcased ⇒ Object
readonly
Returns the value of attribute camelcased.
-
#snakecased ⇒ Object
readonly
Returns the value of attribute snakecased.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(project_name) ⇒ ProjectNameDataMapper
constructor
A new instance of ProjectNameDataMapper.
Constructor Details
#initialize(project_name) ⇒ ProjectNameDataMapper
Returns a new instance of ProjectNameDataMapper.
8 9 10 11 |
# File 'lib/pico_api/generators/project_name_data_mapper.rb', line 8 def initialize(project_name) @camelcased = project_name.camelize @snakecased = project_name.underscore end |
Instance Attribute Details
#camelcased ⇒ Object (readonly)
Returns the value of attribute camelcased.
6 7 8 |
# File 'lib/pico_api/generators/project_name_data_mapper.rb', line 6 def camelcased @camelcased end |
#snakecased ⇒ Object (readonly)
Returns the value of attribute snakecased.
6 7 8 |
# File 'lib/pico_api/generators/project_name_data_mapper.rb', line 6 def snakecased @snakecased end |
Instance Method Details
#get_binding ⇒ Object
13 14 15 |
# File 'lib/pico_api/generators/project_name_data_mapper.rb', line 13 def get_binding binding end |