Class: EmbedRb::Ted
- Inherits:
-
Object
- Object
- EmbedRb::Ted
- Includes:
- Base
- Defined in:
- lib/embedrb/video/embed_ted.rb
Instance Method Summary collapse
-
#initialize(input, output, options, embeds) ⇒ Ted
constructor
A new instance of Ted.
Methods included from Base
Constructor Details
#initialize(input, output, options, embeds) ⇒ Ted
Returns a new instance of Ted.
8 9 10 11 12 13 14 15 |
# File 'lib/embedrb/video/embed_ted.rb', line 8 def initialize(input, output, , ) @input = input @output = output = = @regex = /(ted.com\/talks\/([a-zA-Z0-9_]+))/mi @service = :ted end |