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