Class: Bowline::Generators::BinderGenerator
- Inherits:
-
NamedGenerator
show all
- Defined in:
- lib/bowline/generators/binder.rb
Instance Method Summary
(collapse)
#initialize, #symbol_name
Methods inherited from Generator
chmod, #shebang, source_root, touch, #with_modules
Instance Method Details
- (Object) bind_name
12
13
14
|
# File 'lib/bowline/generators/binder.rb', line 12
def bind_name
plain_class_name.singularize
end
|
- (Object) bind_type
16
17
18
|
# File 'lib/bowline/generators/binder.rb', line 16
def bind_type
"Collection"
end
|
- (Object) class_name
Also known as:
plain_class_name
8
9
10
|
# File 'lib/bowline/generators/binder.rb', line 8
def class_name
super + "Binder < Bowline::Binders::#{bind_type.capitalize}"
end
|
- (Object) file_name
20
21
22
|
# File 'lib/bowline/generators/binder.rb', line 20
def file_name
super + "_binder"
end
|