summaryrefslogtreecommitdiff
path: root/sample/load_encoder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/load_encoder.rb')
-rw-r--r--sample/load_encoder.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/load_encoder.rb b/sample/load_encoder.rb
index 39d310d..9594bfa 100644
--- a/sample/load_encoder.rb
+++ b/sample/load_encoder.rb
@@ -11,14 +11,14 @@ print 'Now it is loaded: '
p yaml_encoder
puts 'See?'
-tokens_encoder = require_plugin 'CodeRay::Encoders/tokens'
+tokens_encoder = CodeRay.require_plugin 'CodeRay::Encoders/tokens'
print 'Require is also possible: '
p tokens_encoder
puts 'See?'
puts 'Now load some mapped encoders: stats and plain.'
-require_plugin 'CodeRay::Encoders/stats'
-require_plugin 'CodeRay::Encoders/plain'
+CodeRay.require_plugin 'CodeRay::Encoders/stats'
+CodeRay.require_plugin 'CodeRay::Encoders/plain'
puts 'Require all Encoders:'
CodeRay::Encoders.load_all