Module: RailsClafer

Defined in:
lib/rails_clafer.rb,
lib/rails_clafer/card.rb,
lib/rails_clafer/gcard.rb,
lib/rails_clafer/railtie.rb,
lib/rails_clafer/version.rb,
lib/rails_clafer/ref_clafer.rb,
lib/rails_clafer/sub_clafer.rb,
lib/rails_clafer/association.rb,
lib/rails_clafer/clafer_model.rb,
lib/rails_clafer/clafer_element.rb,
lib/rails_clafer/clafer_printer.rb

Defined Under Namespace

Classes: Association, Card, ClaferElement, ClaferModel, ClaferPrinter, ClaferRailtie, GCard, RefClafer, SubClafer

Constant Summary collapse

VERSION =
"0.1.7"

Class Method Summary collapse

Class Method Details

.initObject



15
16
17
18
# File 'lib/rails_clafer.rb', line 15

def init
  Rake::Task[:environment].invoke
  Rails.application.eager_load!
end


6
7
8
9
10
11
12
13
# File 'lib/rails_clafer.rb', line 6

def print
  init
  require 'rails_clafer/clafer_printer'
  require 'rails_clafer/clafer_model'
  claferCode = ClaferPrinter.print_clafers ClaferModel.abstract_clafers
  puts claferCode
  claferCode
end