-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.rb
37 lines (29 loc) · 834 Bytes
/
test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'active_support'
module VimColors
class RubyExample
CONSTANT = /^[0-9]+ regex awesomes$/
attr_reader :colorscheme
# TODO: Bacon ipsum dolor sit amet
def initialize(attributes = {})
@colorscheme = attributes[:colorscheme]
end
def self.examples
# Bacon ipsum dolor sit amet
['string', :symbol, true, false, nil, 99.9, 1..2].each do |value|
puts "it appears that #{value.inspect} is a #{value.class}"
end
{:key1 => :value1, key2: 'value2'}.each do |key, value|
puts "the #{key.inspect} key has a value of #{value.inspect}"
end
%w[One Two Three].each { |number| puts number }
end
private
def heredoc_example
<<-SQL
SELECT *
FROM colorschemes
WHERE background = 'dark'
SQL
end
end
end