Module: Klam::Primitives::Symbols

Included in:
Environment
Defined in:
lib/klam/primitives/symbols.rb

Instance Method Summary collapse

Instance Method Details

#intern(str) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/klam/primitives/symbols.rb', line 4

def intern(str)
  case str
  when 'true'
    true
  when 'false'
    false
  else
    str.intern
  end
end