summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-02-02 21:27:58 -0500
committerrealtradam <[email protected]>2022-02-02 21:27:58 -0500
commit08da136b82adfd4f74973c03da5e4584ac50c03d (patch)
tree8055af897395ff5229bdbb9bf5d1b9b19711fde6
parentafc1e3c663dc5fb2c3889608c2c2fef870ba428b (diff)
downloadmruby-raylib-08da136b82adfd4f74973c03da5e4584ac50c03d.tar.gz
mruby-raylib-08da136b82adfd4f74973c03da5e4584ac50c03d.zip
added yard
-rw-r--r--.gitignore2
-rw-r--r--.yardoc/checksums2
-rw-r--r--.yardoc/complete0
-rw-r--r--.yardoc/object_typesbin0 -> 775 bytes
-rw-r--r--.yardoc/objects/root.datbin0 -> 11366 bytes
-rw-r--r--.yardoc/proxy_typesbin0 -> 4 bytes
-rw-r--r--Gemfile7
-rw-r--r--Gemfile.lock15
-rw-r--r--Rakefile9
-rw-r--r--mrblib/raylib.rb1
10 files changed, 36 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..eee5871
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+docs
+docs/*
diff --git a/.yardoc/checksums b/.yardoc/checksums
new file mode 100644
index 0000000..36f29c4
--- /dev/null
+++ b/.yardoc/checksums
@@ -0,0 +1,2 @@
+mrblib/raylib.rb ce42382655c9ad1b0aa789cfb6d45d08be4eaf94
+src/raylib.c 36377aaeec5ca596a4d3493599dba11d45dfe2e3
diff --git a/.yardoc/complete b/.yardoc/complete
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.yardoc/complete
diff --git a/.yardoc/object_types b/.yardoc/object_types
new file mode 100644
index 0000000..5225e0e
--- /dev/null
+++ b/.yardoc/object_types
Binary files differ
diff --git a/.yardoc/objects/root.dat b/.yardoc/objects/root.dat
new file mode 100644
index 0000000..171c994
--- /dev/null
+++ b/.yardoc/objects/root.dat
Binary files differ
diff --git a/.yardoc/proxy_types b/.yardoc/proxy_types
new file mode 100644
index 0000000..beefda1
--- /dev/null
+++ b/.yardoc/proxy_types
Binary files differ
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..500ca41
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+source "https://rubygems.org"
+
+# gem "rails"
+
+gem "yard", "~> 0.9.27"
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..887180c
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,15 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ webrick (1.7.0)
+ yard (0.9.27)
+ webrick (~> 1.7.0)
+
+PLATFORMS
+ x86_64-linux
+
+DEPENDENCIES
+ yard (~> 0.9.27)
+
+BUNDLED WITH
+ 2.3.6
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..ec69262
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,9 @@
+require 'yard'
+
+task default: [:yard]
+
+YARD::Rake::YardocTask.new do |t|
+ t.files = ['./mrblib/*', 'src/*']
+ t.options = ['--output-dir', './docs', 'yardoc --markup=markdown|textile|rdoc(default)']
+ t.stats_options = ['--list-undoc']
+end
diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb
index 1b0dfda..ed98340 100644
--- a/mrblib/raylib.rb
+++ b/mrblib/raylib.rb
@@ -1,5 +1,6 @@
Rl = Raylib
+# This is a raylib module
module Raylib
class Rectangle
def draw(color: Rl::Color.new(255,255,255,255))