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.2"

Class Method Summary collapse

Class Method Details

.artString


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

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

.factory(class_name) ⇒ Constant

Generates a Mousevc class constant ready for instantiation


42
43
44
45
46
# File 'lib/mousevc.rb', line 42

def self.factory(class_name)
  "Mousevc::#{class_name}".split('::').inject(Object) do |object, string|
    object.const_get(string)
  end
end