We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e44ba commit a64e12cCopy full SHA for a64e12c
lib/matestack/ui/core/tag_helper.rb
@@ -25,8 +25,11 @@ module TagHelper
25
end
26
27
def plain(text=nil, options=nil, &block)
28
- raise "please specify an argument or block when using plain" if text.nil? && !block_given?
29
- Matestack::Ui::Core::Base.new(nil, text||yield, options)
+ if block_given?
+ Matestack::Ui::Core::Base.new(nil, yield, options)
30
+ else
31
+ Matestack::Ui::Core::Base.new(nil, text, options)
32
+ end
33
34
35
def unescape(text)
0 commit comments