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