Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/ruby-beamer/common.rb
Instance Method Summary collapse
Instance Method Details
#to_beamer_hash ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ruby-beamer/common.rb', line 24 def to_beamer_hash inject(Hash.new) do |values, arg| if(arg.is_a? ::Hash) values.merge! arg else values[arg] = nil end values end end |