Module: BobeeHelper

Defined in:
app/helpers/bobee_helper.rb

Instance Method Summary collapse

Instance Method Details

#bobee(type) ⇒ Object

TODO:

  1. add more type like buddha, 乖乖

  2. require ascii from assets/*.txt

  3. put comment at top of html?

Raises:

  • (ArgumentError)


6
7
8
9
# File 'app/helpers/bobee_helper.rb', line 6

def bobee(type)
  raise ArgumentError unless %w(huacaya).include?(type)
  eval(type).html_safe
end

#huacayaObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'app/helpers/bobee_helper.rb', line 11

def huacaya
  "    <!--\n   \u250F\u2513 \u3000\u250F\u2513\n  \u250F\u251B\u253B\u2501\u2501\u2501\u251B\u253B\u2513\n  \u2503\u3000\u3000   \u2503 \u3000\n  \u2503 \u3000\u2501 \u3000\u2503\n  \u2503 \u2533\u251B \u2517\u2533 \u2503\n  \u2503\u3000\u3000 \u3000\u2503\n  \u2503   \u253B\u3000 \u2503\n  \u2503\u3000 \u3000\u3000\u2503\n  \u2517\u2501\u2513 \u3000\u250F\u2501\u251B\n  \u3000\u2503 \u3000\u2503\u795E\u517D\u4FDD\u4F51\n  \u3000\u2503 \u3000\u2503\u4EE3\u7801\u65E0BUG\uFF01\n  \u3000\u2503 \u3000\u2517\u2501\u2501\u2501\u2513\n  \u3000\u2503 \u3000\u3000\u3000\u2523\u2513\n  \u3000\u2503   \u3000\u3000\u250F\u251B\n  \u3000\u2517\u2513\u2513\u250F\u2501\u2533\u2513\u250F\u251B\n  \u3000\u3000\u2503\u252B\u252B\u2503\u252B\u252B\n  \u3000\u3000\u2517\u253B\u251B\u2517\u253B\u251B\n\n   -->\n  HEREDOC\nend\n"