Module: Mybatis
- Extended by:
- Generate
- Defined in:
- lib/mybatis.rb,
lib/mybatis/cli.rb,
lib/mybatis/version.rb,
lib/mybatis/util/folder.rb,
lib/mybatis/util/context.rb,
lib/mybatis/util/generate.rb,
lib/mybatis/builder/builder.rb,
lib/mybatis/builder/po_builder.rb,
lib/mybatis/builder/mapper_builder.rb,
lib/mybatis/builder/mapper_xml_builder.rb
Defined Under Namespace
Modules: Builder, Folder, Generate, MapperBuilder, MapperXMLBuilder, PoBuilder Classes: CLI
Constant Summary collapse
- VERSION =
"0.0.9"
Class Method Summary collapse
Methods included from Generate
Methods included from MapperXMLBuilder
#build_mapper_xml, #get_all_column, #get_class_path, #get_mapper_column, #get_mapper_folder, #get_mapper_xml_path, #get_table_name, #get_update_values_column
Methods included from MapperBuilder
Methods included from PoBuilder
Methods included from Folder
#get_resources_folder, #get_source_folder, #get_test_resources_folder, #get_test_source_folder
Class Method Details
.confirm_options(description) {|result == 'y' ? true : false| ... } ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/mybatis.rb', line 18 def (description) result = '' until result == 'y' || result == 'n' puts description result = $stdin.gets.sub /[\s]/,'' end yield result == 'y' ? true : false end |
.launch_dir ⇒ Object
14 15 16 |
# File 'lib/mybatis.rb', line 14 def launch_dir Dir.pwd end |