Class: Array
Instance Method Summary collapse
- #extract_options ⇒ Object
- #extract_options! ⇒ Object
- #norm ⇒ Object
- #norm! ⇒ Object
- #options ⇒ Object
Instance Method Details
#extract_options ⇒ Object
5 6 7 |
# File 'lib/angry_mob/extend/array.rb', line 5 def if Hash === last then last else {} end end |
#extract_options! ⇒ Object
2 3 4 |
# File 'lib/angry_mob/extend/array.rb', line 2 def if Hash === last then pop else {} end end |
#norm ⇒ Object
19 20 21 22 23 |
# File 'lib/angry_mob/extend/array.rb', line 19 def norm n = flatten n.compact! n end |
#norm! ⇒ Object
25 26 27 28 29 |
# File 'lib/angry_mob/extend/array.rb', line 25 def norm! flatten! compact! self end |