This file contains hidden or 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
class GradingWrapper | |
def initialize(data) | |
@data = data | |
end | |
def description | |
@data['description'] | |
end | |
def scale |
This file contains hidden or 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
require 'test/unit' | |
class ArticleTest < Test::Unit::TestCase | |
def test_initialization | |
end | |
def test_initialization_with_anonymous_author | |
end |
This file contains hidden or 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
class Array | |
def to_proc | |
proc do |obj, *args| | |
self.inject(obj) do |result, element| | |
result = result.send(element, *args) | |
end | |
end | |
end | |
end |