Class: Functional::ToHash

Inherits:
Base show all
Defined in:
lib/functional.rb

Instance Attribute Summary

Attributes inherited from Base

#caller, #exe, #next

Instance Method Summary collapse

Methods inherited from Base

#base_fun, #to_proc

Constructor Details

#initializeToHash

Returns a new instance of ToHash.



240
241
242
243
# File 'lib/functional.rb', line 240

def initialize
	super
	@buf = {}
end

Instance Method Details

#cleanObject



254
255
# File 'lib/functional.rb', line 254

def clean
end

#endObject



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