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 RSpec | |
module DescribeExampleMethods | |
def initialize(before_method, let_method) | |
self.class.send(:define_method, :before_it) do |*args| | |
before_method.call | |
end | |
self.class.send(:define_method, :let_method) do |*args| | |
let_method.call | |
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 RSpec | |
module DescribeExampleMethods | |
def initialize(before_method, let_method) | |
self.class.send(:define_method, :before_it) do |*args| | |
before_method.call | |
end | |
self.class.send(:define_method, :let_method) do |*args| | |
let_method.call | |
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 RSpec | |
module DescribeExampleMethods | |
def initialize(before_method, let_method) | |
self.class.send(:define_method, :before_it) do |*args| | |
before_method.call | |
end | |
self.class.send(:define_method, :let_method) do |*args| | |
let_method.call | |
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 RSpec | |
module DescribeExampleMethods | |
def initialize(before_method, let_method) | |
self.class.send(:define_method, :before_it) do |*args| | |
before_method.call | |
end | |
self.class.send(:define_method, :let_method) do |*args| | |
let_method.call | |
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
class C | |
end | |
describe "a msg" do | |
#let(:c) { C.new } | |
before do | |
p '1 level before' | |
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 RSpec | |
module DescribeExampleMethods | |
def initialize(before_method, let_method) | |
self.class.send(:define_method, :before_it) do |*args| | |
before_method.call | |
end | |
self.class.send(:define_method, :let_method) do |*args| | |
let_method.call | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="js/jquery.js"></script> | |
<script type="text/javascript"> | |
(function () { | |
$(document).ready(function () { | |
$("html, body").animate({ scrollTop: $(document).height() }); | |
}) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="js/jquery.js"></script> | |
<script type="text/javascript"> | |
(function () { | |
$(document).ready(function () { | |
$("html, body").animate({ scrollTop: $(document).height() }); | |
}) |
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
require 'ostruct' | |
require 'pry/config' | |
class Pry | |
# The RC Files to load. | |
HOME_RC_FILE = ENV["PRYRC"] || "~/.pryrc" | |
LOCAL_RC_FILE = "./.pryrc" | |
# @return [Hash] Pry's `Thread.current` hash |
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
require 'ostruct' | |
require 'pry/config' | |
class Pry | |
# The RC Files to load. | |
HOME_RC_FILE = ENV["PRYRC"] || "~/.pryrc" | |
LOCAL_RC_FILE = "./.pryrc" | |
# @return [Hash] Pry's `Thread.current` hash |