I hereby claim:
- I am ged on github.
- I am ged (https://keybase.io/ged) on keybase.
- I have a public key ASCwVmGyGLRuwjCKt6kSJ0Zy89VDirUXsa8kR8v84mDYggo
To claim this, I am signing this object:
| <template> | |
| <h1>I expect:</h1> | |
| <div> | |
| <strong>this</strong>: that<br> | |
| <strong>those</strong>: these<br> | |
| </div> | |
| <h1>But I get:</h1> | |
| <div repeat.for="[a,b] of stuff"> | |
| <strong>${a}</strong>: ${b}<br> |
I hereby claim:
To claim this, I am signing this object:
| diff --git a/lib/inversion/template.rb b/lib/inversion/template.rb | |
| --- a/lib/inversion/template.rb | |
| +++ b/lib/inversion/template.rb | |
| @@ -121,6 +121,7 @@ class Inversion::Template | |
| :ignore_unknown_tags => true, | |
| :template_paths => [], | |
| :stat_delay => 0, | |
| + :strict_attributes => false, | |
| # Rendering options |
| class OrganizationalUnitsController < ApplicationController | |
| def show | |
| @organizational_unit = @directory.search( params[:id], :base ) | |
| end | |
| end | |
| require 'treequel/model' | |
| require 'treequel/model/objectclass' |
| class Sheen | |
| include Celluloid::Actor | |
| def initialize(name) | |
| @name = name | |
| end | |
| def current_status | |
| "#{@name} is winning!" | |
| end |
| #!/usr/bin/env ruby | |
| class A | |
| def initialize | |
| puts "Initializing an A" | |
| super | |
| end | |
| end | |
| module B |
| #!/usr/bin/env ruby -wKU | |
| ### A parasitic class | |
| class Parasite | |
| ### Make all future instances of the Parasite actually call | |
| ### methods of the +victim+ instead. | |
| def self.infest( victim ) | |
| victim.methods.each do |m| | |
| meth = victim.method( m ) |
| #!/usr/bin/env ruby | |
| require 'pg' | |
| require 'stringio' | |
| $stderr.puts "Opening database connection ..." | |
| conn = PGconn.connect( :dbname => 'test' ) | |
| conn.exec( <<END_SQL ) | |
| DROP TABLE IF EXISTS logs; |
| #!/usr/bin/env ruby | |
| class A | |
| def a; end | |
| def b; end | |
| end | |
| class B < A | |
| def a; end | |
| end |