githubnext / githubnext/monaspace

Add Ruby code preview to website

オープン
#40 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
19.6k
フォーク
322
PR マージ指標
30日以内にマージされた PR はありません

説明

I want to see how it looks with Ruby source code.

![image](https://github.com/githubnext/monaspace/assets/1383035/a67daf62-5fd9-4df1-a4a7-c8b1371e7183)

Feel free to use this snippet:
```rb
class Person
attr_accessor :name, :age

def initialize(name, age)
@name = name
@age += age
end

def ==(other)
@name == other.name && @age == other.age
end

def <=>(other)
@age <=> other.age
end

def !~(other)
@name !~ other.name || @age != other.age
end

def =~(other)
@name =~ other.name && @age == other.age
end

def <<(other)
@name << other.name
end

def >>(other)
@age >> other.age
end

def **(other)
@age ** other.age
end

def &&(other)
@name && other.name && @age && other.age
end

def ||(other)
@name || other.name || @age || other.age
end
end

alice = Person.new("Alice", 30)
bob = Person.new("Bob", 35)

puts alice == bob # => false
puts alice <=> bob # => -1
puts alice !~ bob # => true
puts alice =~ bob # => false
puts alice << bob # => "AliceBob"
puts alice >> bob # => 30
puts alice ** bob # => 9000000000000000
puts alice && bob # => true
puts alice || bob # => true
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、既存のコードプレビューを組み立てているウェブサイトのコードを見つけ、他のソース言語がどのように表現されているかを比較します。適切な場所に提供された Ruby スニペットを追加し、その後、ウェブサイトで Ruby ソースが正しくレンダリングされることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ruby
領域
web-dev
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。