Class: ERB::Compiler::PercentLine
Overview
:nodoc:
Instance Attribute Summary collapse
-
#value ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(str) ⇒ PercentLine
constructor
A new instance of PercentLine.
Constructor Details
#initialize(str) ⇒ PercentLine
Returns a new instance of PercentLine.
271 272 273 |
# File 'lib/framework/erb.rb', line 271 def initialize(str) @value = str end |
Instance Attribute Details
#value ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute value.
274 275 276 |
# File 'lib/framework/erb.rb', line 274 def value @value end |
Instance Method Details
#empty? ⇒ Boolean
277 278 279 |
# File 'lib/framework/erb.rb', line 277 def empty? @value.empty? end |