Method: Marko::Pluggable::Plug#plugged=
- Defined in:
- lib/marko/gadgets/pluggable.rb
#plugged=(obj) ⇒ Object
48 49 50 51 52 |
# File 'lib/marko/gadgets/pluggable.rb', line 48 def plugged=(obj) fail ArgumentError.new("required an instance of #{@klass}" ) unless obj.is_a?(@klass) @plugged = obj end |