Module: RoCommands
- Defined in:
- lib/ro_commands/base.rb,
lib/ro_commands.rb,
lib/ro_commands/git.rb,
lib/ro_commands/try.rb,
lib/ro_commands/hook.rb,
lib/ro_commands/info.rb,
lib/ro_commands/misc.rb,
lib/ro_commands/zeus.rb,
lib/ro_commands/rails.rb,
lib/ro_commands/generate.rb,
lib/ro_commands/git_flow.rb,
lib/ro_commands/navigate.rb,
lib/ro_commands/refactor.rb,
lib/ro_commands/ro_procs.rb,
lib/ro_commands/rubymine.rb,
lib/ro_commands/processes.rb,
lib/ro_commands/ro_helper.rb,
lib/ro_commands/shortcuts.rb,
lib/ro_commands/dsl/ro_file.rb,
lib/ro_commands/file_actions.rb,
lib/ro_commands/generators/ex.rb,
lib/ro_commands/helpers/all_files.rb,
lib/ro_commands/generators/spec_file.rb,
lib/ro_commands/generators/base_generator.rb
Overview
gotchas: please use extend ::RoCommands::RoHelper, make sure module first extend ‘method_added’ method example:
module TryHelper
extend ::RoCommands::RoHelper
class << self
def _template_in_self
end
end
def _template_in_normal
end
end
Defined Under Namespace
Modules: DSL, Generators, Hook, RoHelper Classes: Base, FileActions, Generate, Git, GitFlow, Info, Misc, Navigate, Processes, Rails, Refactor, RoProcs, Rubymine, Shortcuts, Try, Zeus
Class Method Summary collapse
Class Method Details
.autoload_files_in(dir) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/ro_commands.rb', line 18 def self.autoload_files_in(dir) Dir[File.join File.("../#{dir}", __FILE__), "**"].each do |file| if file[/\.rb$/] module_name = File.basename(file).gsub(/\.rb/, '').camelize autoload module_name.to_sym, file autoload module_name.upcase, file end end end |
.file_map ⇒ Object
5 6 7 8 9 |
# File 'lib/ro_commands/helpers/all_files.rb', line 5 def file_map @meth_map.flatten! if @meth_map.respond_to?(:flatten!) @meth_map.uniq! if @meth_map.respond_to?(:uniq!) @meth_map ||= {} end |