# Accessing Ruby class from C extention

**URL:** <https://rubytalk.org/t/accessing-ruby-class-from-c-extention/5877>\
**Category:** ruby-talk\
**Created:** [6 May 2003 09:56 UTC](https://rubytalk.org/t/accessing-ruby-class-from-c-extention/5877 "2003-05-06T09:56:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Pena\_Botp1](https://avatars.discourse-cdn.com/v4/letter/_/94ad74/32.png) [@\_Pena\_Botp1](https://rubytalk.org/u/_Pena_Botp1)\
**Post date:** [6 May 2003 09:56 UTC](https://rubytalk.org/t/accessing-ruby-class-from-c-extention/5877/1 "2003-05-06T09:56:28Z")

</div>

Simon Strandgaard [[mailto:0bz63fz3m1qt3001@sneakemail.com](mailto:0bz63fz3m1qt3001@sneakemail.com)] replied:

> OK… For the code-pieces I have converted  
> tabs(indent=8) into spaces(indent=4) and  
> the very long lines is now spanning 2 lines.
> 
> Does it look better now ?

nope, same bad result for opera and mozilla… but the boxes fit on ie 🙂

> How can this be improved further ?

maybe, remove borders first 🙂  
it would still look fine since you’re using a different font for codes…

> Yes. these colors were very quickly selected 🙂  
> I think I read on rubytalk that you should be cautious  
> using a red-colors, because of colorblindness.  
> Maybe we should start a rubygarden wiki page on  
> recommended colors ?

you have gray, black, and blue. I think these color combis doesn’t help much  
for colorblinds since they do not differ much. On the other hand, if you  
include red, the difference in intensity may add to its readability…

> Is there any around with knowledge about this ?

google may help 🙂

> Simon Strandgaard

kind regards -botp

---

<div class="post-metadata">

**Author:** ![Simon\_Strandgaard](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@Simon\_Strandgaard](https://rubytalk.org/u/Simon_Strandgaard)\
**Post date:** [6 May 2003 10:45 UTC](https://rubytalk.org/t/accessing-ruby-class-from-c-extention/5877/2 "2003-05-06T10:45:32Z")

</div>

> Simon Strandgaard [[mailto:0bz63fz3m1qt3001@sneakemail.com](mailto:0bz63fz3m1qt3001@sneakemail.com)] replied:
> 
> > OK… For the code-pieces I have converted  
> > tabs(indent=8) into spaces(indent=4) and  
> > the very long lines is now spanning 2 lines.
> > 
> > Does it look better now ?
> 
> nope, same bad result for opera and mozilla… but the boxes fit on ie 🙂

I have an old Mozilla-1.2b + konquorer-3.0.5 and it looks ok.  
I neither have Opera nor IE.  
Is it the boxes with code-pieces which overflows ?  
Or is it those with a dashed border ?

Can you adjust the CSS so it fits ?

> > How can this be improved further ?
> 
> maybe, remove borders first 🙂  
> it would still look fine since you’re using a different font for codes…

I love double-borders… Is it that bad ?  
Sugesstions for CSS is welcome 🙂

> > Yes. these colors were very quickly selected 🙂  
> > I think I read on rubytalk that you should be cautious  
> > using a red-colors, because of colorblindness.  
> > Maybe we should start a rubygarden wiki page on  
> > recommended colors ?
> 
> you have gray, black, and blue. I think these color combis doesn’t help much  
> for colorblinds since they do not differ much. On the other hand, if you  
> include red, the difference in intensity may add to its readability…

I think too much constrast is stressing my eyes. Therefore I assume that  
it would be more relaxing reading the document if I don’t use too much  
constrast.  
Suggestions for a better color-scheme is very welcome (CSS again 🙂

> > Is there any around with knowledge about this ?  
> > google may help 🙂

I found something… I will eat some food and read it 🙂

> **[Color Deficient Vision](http://www.visibone.com/colorblind/)**
>
> Color blindness references for Web Designers. Cards and Charts simulating the web-safe colors in color blindness. Explanation, instructions.

> **···**
>
> On Tue, 06 May 2003 19:56:28 +0900, Peña, Botp wrote:
> 
> –  
> Simon Strandgaard
