Module: Mousevc

Defined in:
lib/mousevc.rb,
lib/mousevc/app.rb,
lib/mousevc/view.rb,
lib/mousevc/error.rb,
lib/mousevc/input.rb,
lib/mousevc/model.rb,
lib/mousevc/router.rb,
lib/mousevc/version.rb,
lib/mousevc/controller.rb,
lib/mousevc/validation.rb,
lib/mousevc/persistence.rb

Overview

Mousevc is the top level module and namespace for the Mousevc framework.

Defined Under Namespace

Classes: App, Controller, Error, Input, Model, Persistence, Router, Validation, View

Constant Summary collapse

VERSION =

The current version

"0.0.6.1"

Class Method Summary collapse

Class Method Details

.artString

TODO:

Add link to documentation

Returns some pretty ASCII art.

Returns:

  • (String)

    some pretty ASCII art



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/mousevc.rb', line 14

def self.art
  lines = [
    "",
    "(`) (`)",
    "=('o')=",
    "  m m  ",
    "",
    "MousevC",
    "V     L",
    "C     I",
    "",
    "by",
    "Bideo Wego",
    "http://bideowego.com/mousevc",
    "",
    "Documentation",
    "http://www.rubydoc.info/gems/mousevc"
  ]
  width = lines.max.length
  width = width.even? ? width + 1 : width
  lines.map do |s|
    s.center(width)
  end.join("\n")
end

.factory(class_name) ⇒ Constant

Generates a Mousevc class constant ready for instantiation

Parameters:

  • class_name (String)

    the string name of the class

Returns:

  • (Constant)

    the class constant



45
46
47
# File 'lib/mousevc.rb', line 45

def self.factory(class_name)
  Mousevc.const_get(class_name)
end