mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Clean up some undocumented stuff.
This commit is contained in:
parent
006697665d
commit
6ec791ebb7
7 changed files with 11 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
--markup-provider maruku
|
||||
--default-return ""
|
||||
--title "Haml/Sass Documentation"
|
||||
--query 'object.type != :classvariable'
|
||||
--hide-void-return
|
||||
--protected
|
||||
--no-private
|
||||
|
|
1
Rakefile
1
Rakefile
|
@ -251,6 +251,7 @@ OPTS
|
|||
YARD::Rake::YardocTask.new do |t|
|
||||
t.files = FileList.new(scope('lib/**/*.rb')) do |list|
|
||||
list.exclude('lib/haml/template/*.rb')
|
||||
list.exclude('lib/haml/railtie.rb')
|
||||
list.exclude('lib/haml/helpers/action_view_mods.rb')
|
||||
list.exclude('lib/haml/helpers/xss_mods.rb')
|
||||
list.exclude('lib/sass/plugin/merb.rb')
|
||||
|
|
|
@ -308,6 +308,8 @@ END
|
|||
::RedCloth.new(text).to_html(:textile)
|
||||
end
|
||||
end
|
||||
# An alias for the Textile filter,
|
||||
# since the only available Textile parser is RedCloth.
|
||||
RedCloth = Textile
|
||||
Filters.defined['redcloth'] = RedCloth
|
||||
|
||||
|
|
|
@ -577,6 +577,7 @@ END
|
|||
end
|
||||
end
|
||||
|
||||
# @private
|
||||
class Object
|
||||
# Haml overrides various `ActionView` helpers,
|
||||
# which call an \{#is\_haml?} method
|
||||
|
|
|
@ -146,6 +146,7 @@ END
|
|||
class Line < Struct.new(:text, :unstripped, :full, :index, :precompiler, :eod)
|
||||
alias_method :eod?, :eod
|
||||
|
||||
# @private
|
||||
def tabs
|
||||
line = self
|
||||
@tabs ||= precompiler.instance_eval do
|
||||
|
|
|
@ -251,6 +251,10 @@ module Haml
|
|||
raise Haml::Error.new("Expected #{text.inspect} to be HTML-safe.")
|
||||
end
|
||||
|
||||
# The class for the Rails SafeBuffer XSS protection class.
|
||||
# This varies depending on Rails version.
|
||||
#
|
||||
# @return [Class]
|
||||
def rails_safe_buffer_class
|
||||
return ActionView::SafeBuffer if defined?(ActionView::SafeBuffer)
|
||||
ActiveSupport::SafeBuffer
|
||||
|
|
|
@ -30,6 +30,7 @@ module Sass::Tree
|
|||
@last_else = node
|
||||
end
|
||||
|
||||
# @see Node#options=
|
||||
def options=(options)
|
||||
super
|
||||
self.else.options = options if self.else
|
||||
|
|
Loading…
Add table
Reference in a new issue