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 Foo | |
| def query(q) | |
| puts "Foo received query #{q}" | |
| end | |
| alias query_alternate query | |
| end | |
| describe RSpec do | |
| before :all do |
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
| # This fails. I think the refinements are loaded into the scope | |
| # only when #using is called, and additional refinements that are | |
| # added to the Helpers module later have no effect. | |
| module Helpers | |
| refine Class do | |
| def helper(mod) | |
| klass = self | |
| Helpers.module_exec do | |
| puts "#{klass} wants to use #{mod}, self=#{self}" |
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
| PololuLedStrip<11> ledStrip11; | |
| PololuLedStripBase * ledStrips[] = | |
| { | |
| &ledStrip11, | |
| &PololuLedStrip<12>(), // warning: taking address of temporary [-fpermissive] | |
| }; |
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
| $ rake | |
| rake aborted! | |
| (<unknown>): did not find expected node content while parsing a block node at line 183 column 9 | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:6:in `<module:LATEX>' | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:3:in `<top (required)>' | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `require' | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `<top (required)>' | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/RedCloth-4.2.3/lib/case_sensitive_require/RedCloth.rb:6:in `require' | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/RedCloth-4.2.3/lib/case_sensitive_require/RedCloth.rb:6:in `<top (required)>' | |
| /home/david/.rvm/gems/ruby-1.9.3-p362@system2/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require' |
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
| 1.9.3p374 :002 > BigDecimal('6').eql? 6 | |
| => true | |
| 1.9.3p374 :003 > 6.eql? BigDecimal('6') | |
| => false |
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
| irb(main):024:0> com.microchip.mplab.mdbcore.platformtool.PlatformToolMetaManager | |
| NameError: missing class or uppercase package name (`com.microchip.mplab.mdbcore.platformtool.Platfo | |
| rmToolMetaManager') | |
| from org/jruby/javasupport/JavaUtilities.java:54:in `get_proxy_or_package_under_package' | |
| from file:/C:/jruby-1.7.3/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14:in `m | |
| ethod_missing' | |
| from (irb):24:in `evaluate' | |
| from org/jruby/RubyKernel.java:1066:in `eval' | |
| from org/jruby/RubyKernel.java:1409:in `loop' | |
| from org/jruby/RubyKernel.java:1174:in `catch' |
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
| describe "rspec syntax" do | |
| describe "==" do | |
| it "allows line breaks" do | |
| 5.should == | |
| 5 | |
| end | |
| end | |
| describe "eq" do | |
| it "does not allow line breaks" do |
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
| describe 'rspec syntax' do | |
| let(:x) { 4 } | |
| describe '==' do | |
| it 'silently fails if you forget .should' do | |
| x == 5 | |
| end | |
| end | |
| describe 'eq' do |
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
| module YARD | |
| module Parser | |
| module Ruby | |
| # Builds and s-expression by creating {AstNode} objects with | |
| # the type provided by the first argument. | |
| # | |
| # @example An implicit list of keywords | |
| # ast = s(s(:kw, "if"), s(:kw, "else")) | |
| # ast.type # => :list | |
| # @example A method call |
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
| C:\Users\David\Documents\yard_david>jruby -S rake gem | |
| rake aborted! | |
| ["(eval)"] are not files | |
| C:/Users/David/Documents/yard_david/Rakefile:11:in `(root)' | |
| org/jruby/RubyProc.java:255:in `call' | |
| org/jruby/RubyArray.java:1617:in `each' | |
| org/jruby/RubyArray.java:1617:in `each' | |
| org/jruby/RubyKernel.java:1073:in `load' | |
| Tasks: TOP => gem | |
| (See full trace by running task with --trace) |