Class: Bowline::Generators::BinderGenerator

Inherits:
NamedGenerator show all
Defined in:
lib/bowline/generators/binder.rb

Instance Method Summary collapse

Methods inherited from NamedGenerator

#initialize, #symbol_name

Methods inherited from Generator

chmod, #shebang, source_root, touch, #with_modules

Constructor Details

This class inherits a constructor from Bowline::Generators::NamedGenerator

Instance Method Details

#bind_nameObject



12
13
14
# File 'lib/bowline/generators/binder.rb', line 12

def bind_name
  plain_class_name.singularize
end

#bind_typeObject



16
17
18
# File 'lib/bowline/generators/binder.rb', line 16

def bind_type
  "Collection"
end

#class_nameObject



8
9
10
# File 'lib/bowline/generators/binder.rb', line 8

def class_name
  super + "Binder < Bowline::Binders::#{bind_type.capitalize}"
end

#file_nameObject



20
21
22
# File 'lib/bowline/generators/binder.rb', line 20

def file_name
  super + "_binder"
end

#plain_class_nameObject



7
# File 'lib/bowline/generators/binder.rb', line 7

alias :plain_class_name :class_name