Class: Sl

Inherits:
Object
  • Object
show all
Defined in:
lib/simrb/init.rb

Overview

increase language block

Constant Summary collapse

@@options =
{}

Class Method Summary collapse

Class Method Details

.<<(h) ⇒ Object



19
20
21
# File 'lib/simrb/init.rb', line 19

def << h
  @@options.merge!(h)
end

.[](key) ⇒ Object



14
15
16
17
# File 'lib/simrb/init.rb', line 14

def [] key
  key = key.to_s
  @@options.include?(key) ? @@options[key] : key
end