summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2014-03-02 17:06:11 -0700
committerDan Allen <dan.j.allen@gmail.com>2014-03-02 17:06:11 -0700
commitc0f877a5664596a3a8195d51744b1e11b43b137a (patch)
tree420e1ff582fdaea6994fd1f0dab8c95227e0b92e
parent208bbd517525e664219b84fd690c1e9a83d704d7 (diff)
use method alias instead of delegate
-rw-r--r--lib/asciidoctor/table.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/asciidoctor/table.rb b/lib/asciidoctor/table.rb
index cd96c9b3..0efa827d 100644
--- a/lib/asciidoctor/table.rb
+++ b/lib/asciidoctor/table.rb
@@ -7,15 +7,13 @@ class Table < AbstractBlock
class Rows
attr_accessor :head, :foot, :body
- def initialize(head = [], foot = [], body = [])
+ def initialize head = [], foot = [], body = []
@head = head
@foot = foot
@body = body
end
- def [](name)
- self.send(name)
- end
+ alias :[] :send
end
# Public: A String key that specifies the default table format in AsciiDoc (psv)