Class: ActA::Actor
- Inherits:
-
Object
- Object
- ActA::Actor
- Defined in:
- lib/act_a.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
Returns the value of attribute klass.
Instance Method Summary collapse
- #apply(*args) ⇒ Object
-
#initialize(klass) ⇒ Actor
constructor
A new instance of Actor.
Constructor Details
#initialize(klass) ⇒ Actor
15 16 17 |
# File 'lib/act_a.rb', line 15 def initialize(klass) self.klass = klass end |
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass.
13 14 15 |
# File 'lib/act_a.rb', line 13 def klass @klass end |
Instance Method Details
#apply(*args) ⇒ Object
19 20 21 |
# File 'lib/act_a.rb', line 19 def apply(*args) Validator.new(klass).apply(*args) end |