mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:41:43 +00:00
inspeccionar para que no se pongan pesados los tracebacks
This commit is contained in:
parent
f68977e53d
commit
cd1c678f60
2 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,10 @@ class Post
|
|||
:layout, :permalink, :dir,
|
||||
{ lang: {} }, { tags: [] }, { categories: [] }]
|
||||
|
||||
def inspect
|
||||
"#<Post @id=#{id} @site=#{site.name}>"
|
||||
end
|
||||
|
||||
# Trabajar con posts. Si estamos creando uno nuevo, el **site** y
|
||||
# el **front_matter** son necesarios, sino, **site** y **post**.
|
||||
# XXX chequear que se den las condiciones
|
||||
|
|
|
@ -5,6 +5,10 @@ class Site
|
|||
attr_accessor :jekyll, :collections
|
||||
attr_reader :path
|
||||
|
||||
def inspect
|
||||
"#<Site @id=#{name}>"
|
||||
end
|
||||
|
||||
def initialize(jekyll:, path: nil)
|
||||
@jekyll = jekyll
|
||||
@path = path || @jekyll.config['source']
|
||||
|
|
Loading…
Reference in a new issue