Class: ERB::Compiler::PercentLine
- Inherits:
-
Object
- Object
- ERB::Compiler::PercentLine
- Defined in:
- lib/rubysl/erb/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
:nodoc:.
Constructor Details
#initialize(str) ⇒ PercentLine
:nodoc:
343 344 345 |
# File 'lib/rubysl/erb/erb.rb', line 343 def initialize(str) @value = str end |
Instance Attribute Details
#value ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute value.
346 347 348 |
# File 'lib/rubysl/erb/erb.rb', line 346 def value @value end |
Instance Method Details
#empty? ⇒ Boolean
349 350 351 |
# File 'lib/rubysl/erb/erb.rb', line 349 def empty? @value.empty? end |