mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Haml] Add a few headers to haml/util.rb.
This commit is contained in:
parent
d637e86d8c
commit
527a5a2907
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,8 @@ module Haml
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
## Cross-Ruby-Version Compatibility
|
||||||
|
|
||||||
# Whether or not this is running under Ruby 1.8 or lower.
|
# Whether or not this is running under Ruby 1.8 or lower.
|
||||||
#
|
#
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
|
@ -155,6 +157,8 @@ module Haml
|
||||||
ruby1_8? ? enum.enum_with_index : enum.each_with_index
|
ruby1_8? ? enum.enum_with_index : enum.each_with_index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
## Static Method Stuff
|
||||||
|
|
||||||
# The context in which the ERB for \{#def\_static\_method} will be run.
|
# The context in which the ERB for \{#def\_static\_method} will be run.
|
||||||
class StaticConditionalContext
|
class StaticConditionalContext
|
||||||
# @param set [#include?] The set of variables that are defined for this context.
|
# @param set [#include?] The set of variables that are defined for this context.
|
||||||
|
|
Loading…
Add table
Reference in a new issue