We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17c2421 commit ae2027eCopy full SHA for ae2027e
README.md
@@ -23,6 +23,12 @@ class Foo
23
puts "b: #{b}"
24
puts "c: #{c}"
25
puts "d: #{d}"
26
+
27
+ buzz
28
+ end
29
30
+ def buzs
31
+ puts 'buzz'
32
end
33
34
```
@@ -41,32 +47,44 @@ class Bar < ActiveMethod::Base
41
47
42
48
43
49
50
51
+ foo.buzz
44
52
45
53
46
54
55
+class Foo
56
+ include ActiveMethod
57
58
+ active_method :bar
59
+end
60
61
Bar.call(1)
62
# => a: 1
63
# => b: 2
64
# => c: nil
65
# => d: 4
66
+# => buzz
67
68
Bar.call(1, 3)
69
70
# => b: 3
71
72
73
74
75
Bar.call(1, 3, c: 6)
76
77
78
# => c: 6
79
80
81
82
Bar.call(1, 3, c: 4, d: 5)
83
84
85
# => c: 4
86
# => d: 5
87
88
89
90
## Development
0 commit comments