Class: PicoApi::Generators::ProjectNameDataMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/pico_api/generators/project_name_data_mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#camelcasedObject (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

#snakecasedObject (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_bindingObject



13
14
15
# File 'lib/pico_api/generators/project_name_data_mapper.rb', line 13

def get_binding
  binding
end