Class: ERB::Compiler::PercentLine
- Inherits:
-
Object
- Object
- ERB::Compiler::PercentLine
- Defined in:
- lib/erb.rb
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.
252 253 254 |
# File 'lib/erb.rb', line 252 def initialize(str) @value = str end |
Instance Attribute Details
#value ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute value
255 256 257 |
# File 'lib/erb.rb', line 255 def value @value end |
Instance Method Details
#empty? ⇒ Boolean
258 259 260 |
# File 'lib/erb.rb', line 258 def empty? @value.empty? end |