class Jekyll::Tags::PlaygroundLink
Public Class Methods
build(rust_highlight_block)
click to toggle source
# File lib/rust_playground_highlight.rb, line 29 def self.build(rust_highlight_block) link_type = [GistGenerated, DynamicallyGenerated, InvalidType].detect { |type| type.block_allowed?(rust_highlight_block) } new( link_type.new( rust_highlight_block.send(link_type.required_value) ) ) end
Public Instance Methods
url()
click to toggle source
# File lib/rust_playground_highlight.rb, line 39 def url "https://play.rust-lang.org/?#{query_string}" end