Class: Functional::ToHash
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #clean ⇒ Object
- #end ⇒ Object
-
#initialize ⇒ ToHash
constructor
A new instance of ToHash.
- #to_hash_fun(k, *a) ⇒ Object (also: #call)
Methods inherited from Base
Constructor Details
#initialize ⇒ ToHash
Returns a new instance of ToHash.
240 241 242 243 |
# File 'lib/functional.rb', line 240 def initialize super @buf = {} end |
Instance Method Details
#clean ⇒ Object
254 255 |
# File 'lib/functional.rb', line 254 def clean end |
#end ⇒ Object
250 251 252 |
# File 'lib/functional.rb', line 250 def end @buf end |
#to_hash_fun(k, *a) ⇒ Object Also known as: call
245 246 247 |
# File 'lib/functional.rb', line 245 def to_hash_fun k, *a @buf[k] = a end |