markopasha has quit [Remote host closed the connection]
orbyt_ has joined #ruby
ur5us has joined #ruby
MadLamb has quit [Ping timeout: 256 seconds]
mheld has joined #ruby
markoong has quit [Ping timeout: 265 seconds]
twe4ked has quit [Read error: Connection reset by peer]
brool has joined #ruby
twe4ked has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
twe4ked has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
jetchisel has joined #ruby
twe4ked has joined #ruby
apteryx has quit [Ping timeout: 260 seconds]
apteryx has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
johnny56_ has joined #ruby
ur5us has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56_ has quit [Ping timeout: 250 seconds]
Technodrome has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
zlogan has quit [Ping timeout: 272 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zlogan has joined #ruby
ChmEarl has quit [Quit: Leaving]
SuperLag has quit [Quit: leaving]
SuperLag has joined #ruby
SuperLag has quit [Quit: leaving]
ellcs has quit [Ping timeout: 260 seconds]
dhollinger has quit [Ping timeout: 264 seconds]
dhollinger has joined #ruby
brool has quit [Ping timeout: 260 seconds]
sergioro has quit [Read error: Connection reset by peer]
sergioro has joined #ruby
haylon has quit [Ping timeout: 250 seconds]
gix has quit [Disconnected by services]
zacts has joined #ruby
sergioro has quit [Quit: leaving]
johnny56_ has joined #ruby
sergioro has joined #ruby
johnny56_ has quit [Ping timeout: 256 seconds]
xNetX0 has quit [Quit: changing servers]
xNetX0 has joined #ruby
johnny56_ has joined #ruby
stapler has joined #ruby
<stapler>
question, i have a pretty thin wrapper over a rest api, and im wondering how to do something like a decorator in python such that the methods that call out to the api can check for a given error response (eg invalid key)
<stapler>
that is, instead of writing the check in each method, writing the check only once and somehow applying that to the methods in the class
johnny56_ has quit [Ping timeout: 265 seconds]
mheld has quit [Quit: Connection closed for inactivity]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
miskatonic has joined #ruby
johnny56_ has joined #ruby
johnny56_ has quit [Ping timeout: 265 seconds]
johnny56 has joined #ruby
johnny56 has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jcalla has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc has quit [Ping timeout: 265 seconds]
buckworst has joined #ruby
rubydoc has joined #ruby
astronautical has joined #ruby
cthulchu has quit [Ping timeout: 256 seconds]
rubydoc has quit [Ping timeout: 264 seconds]
rubydoc has joined #ruby
<havenwood>
stapler: Ruby has the Delegator class. SimpleDelegator sounds like it'd work for your case.
xco has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
hassox has quit [Remote host closed the connection]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
<havenwood>
It seems useful to the reader to designate methods that are no more than an argument expression. I feel like a fair number of recent feature originated out of Elixir envy. :)
TCZ has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
tpanarch1st has quit [Ping timeout: 264 seconds]
mn3m has quit [Remote host closed the connection]
mn3m has joined #ruby
dasher00 has joined #ruby
chalkmonster has joined #ruby
caterfxo has quit [Ping timeout: 260 seconds]
<havenwood>
Please upvote if you like it, and ignore this post if you dislike it. :P
dasher00 has quit [Ping timeout: 258 seconds]
vondruch has quit [Ping timeout: 260 seconds]
caterfxo has joined #ruby
dasher00 has joined #ruby
ldepandis has joined #ruby
KamLy has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
sergioro has joined #ruby
ferche23 has joined #ruby
ferche23 has quit [Max SendQ exceeded]
ferche23 has joined #ruby
lineus_ has joined #ruby
markong has quit [Ping timeout: 265 seconds]
lineus has quit [Ping timeout: 240 seconds]
markong has joined #ruby
ferche23_ has joined #ruby
ferche23_ has quit [Max SendQ exceeded]
ferche23 has quit [Ping timeout: 260 seconds]
ferche23_ has joined #ruby
TCZ has quit [Quit: Leaving]
davor has quit [Ping timeout: 256 seconds]
davor has joined #ruby
_phaul has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
caterfxo has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
schne1der has quit [Ping timeout: 240 seconds]
ferche23_ has quit [Ping timeout: 265 seconds]
markoong has joined #ruby
caterfxo has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]