Module: ActiveFacts::Generators::RubyTraits::Vocabulary
- Defined in:
- lib/activefacts/generators/traits/ruby.rb
Instance Method Summary collapse
Instance Method Details
#finale ⇒ Object
22 23 24 |
# File 'lib/activefacts/generators/traits/ruby.rb', line 22 def finale "end" end |
#prelude ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/activefacts/generators/traits/ruby.rb', line 11 def prelude if @mapping == 'sql' require 'activefacts/rmap' @tables = self.tables end "require 'activefacts/api'\n" + (@mapping == 'sql' ? "require 'activefacts/rmap'\n" : '') + "\nmodule ::#{self.name}\n\n" end |