Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
cheald
12y ago
0 comments
Save
Share
Sans ActiveSupport, you can achieve the same things by just opening class/module eigenclass:
module Foo class << self attr_accessor :bar end end Foo.bar = "baz"
0 comments
2 comments · 1 top-level
top
newest
oldest
lobster_johnson
12y ago
· 1 in thread
Sure, but wasn't that exactly what I wrote in my first example?
cheald
OP
12y ago
Oy, it is. Sorry; my brain is apparently missing its reading comprehension hat today.
j
/
k
navigate · click thread line to collapse