This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class Youtube < Liquid::Tag | |
@width = 640 | |
@height = 390 | |
def initialize(name, id, tokens) | |
super | |
@id = id | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class Vimeo < Liquid::Tag | |
@width = 400 | |
@height = 225 | |
def initialize(name, id, tokens) | |
super | |
@id = id | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package matchers { | |
import org.hamcrest.Description; | |
import org.hamcrest.BaseMatcher; | |
/** | |
* A Hamcrest Matcher to match an array's values exactly. | |
* | |
* @author jamieowen | |
*/ | |
public class ArrayExactMatcher extends BaseMatcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package matchers { | |
import org.hamcrest.Matcher; | |
/** | |
* Shorthand hamcrest function style of the ArrayExactMatcher. | |
* | |
* @author jamieowen | |
*/ | |
public function arrayExact(items:Array) : Matcher | |
{ |