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
common: &common | |
adapter: sqlite3 | |
encoding: unicode | |
pool: 5 | |
development: | |
<<: *common | |
database: db/development.db | |
# Warning: The database defined as "test" will be erased and |
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
Run `rackup` then visit http://localhost:9292/stuff.js. |
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 SomeORM | |
module DynamicAttributes; end | |
include DynamicAttributes | |
def self.attributes(*names) | |
names.each do |name| | |
DynamicAttributes.module_eval do | |
define_method(name) do | |
# Stuff | |
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
/* Generated by Opal 0.6.0 */ | |
(function(ಠopal) { | |
var self = ಠopal.top, ಠscope = ಠopal, nil = ಠopal.nil, ಠbreaker = ಠopal.breaker, ಠslice = ಠopal.slice, ಠklass = ಠopal.klass, user = nil; | |
ಠopal.add_stubs(['ಠattr_accessor', 'ಠ==', 'ಠnew', 'ಠputs', 'ಠadmin?']); | |
(function(ಠbase, ಠsuper) { | |
function ಠUser(){}; | |
var self = ಠUser = ಠklass(ಠbase, ಠsuper, 'User', ಠUser); | |
var def = self._proto, ಠscope = self._scope; |
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
template = "Hello #{noun}!" | |
properties = { noun: "World" } | |
puts template % properties |