Top Level Namespace
Defined Under Namespace
Modules: Kernel, Uyirmei
Classes: UyirMeiLoader
Instance Method Summary
collapse
Instance Method Details
#இல்லைஎனில்(val, &proc) ⇒ Object
45
46
47
|
# File 'lib/uyirmei/core.rb', line 45
def இல்லைஎனில்(val, &proc)
yield unless val
end
|
#எனில்(val, &proc) ⇒ Object
33
34
35
|
# File 'lib/uyirmei/core.rb', line 33
def எனில்(val, &proc)
yield if val
end
|
#நிறுத்து(val) ⇒ Object
49
50
51
|
# File 'lib/uyirmei/core.rb', line 49
def நிறுத்து(val)
val
end
|
#பொய் ⇒ Object
41
42
43
|
# File 'lib/uyirmei/core.rb', line 41
def பொய்
false
end
|
#மீண்டும்(&block) ⇒ Object
53
54
55
56
57
58
|
# File 'lib/uyirmei/core.rb', line 53
def மீண்டும்(&block)
loop do
result = yield
break if result
end
end
|
#மெய் ⇒ Object
37
38
39
|
# File 'lib/uyirmei/core.rb', line 37
def மெய்
true
end
|
#வினை(*args, &block) ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/uyirmei/core.rb', line 18
def வினை(*args, &block)
func_name = :"func_#{rand(1000000)}"
klass = Class.new { attr_accessor *args }
function_block = Proc.new { |*arg_values|
obj = klass.new
args.zip(arg_values).each {|arg, arg_value| obj.send(:"#{arg}=", arg_value) }
obj.instance_eval(&block)
}
define_method(func_name, &function_block)
func_name
end
|