-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add meta_programming's markup #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо поработать пробелами и пробельными строками. Указал ниже
<div class="code-block"> | ||
<p class="spec-title spec-correct">Meta</p> | ||
{% highlight ruby %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проверь тут пробелы блоков в начале и после, не уверен что они есть в Gotcha
define_method :bar do | ||
puts 'This is a dynamic method' | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
После строку пустую, не надо лепить код. Места много
create_method :foo | ||
create_method :bar | ||
create_method :baz | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
После пробел
create_method :baz | ||
end | ||
Bar.new.my_foo | ||
# => "Dynamic method called 'my_foo'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот тут надо пробелами разделть код и коментарий, который относится к блоку. И ниже все
# Parse another class for data | ||
class AnotherClass | ||
def get_foo_stuff; end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай пусты методы тоже без пробельных строк как хуки
puts "Dynamic method called 'my_#{method}'" | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
строка после класса и везде ниже
@denver411 Денис, ветка твои должна называться #{Номер задачи}_#{Название задачи} Передалай |
Пробная верстка раздела meta programming