Class: ERB::Compiler::PercentLine

Inherits:
Object
  • Object
show all
Defined in:
lib/erb.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ PercentLine

:nodoc:



340
341
342
# File 'lib/erb.rb', line 340

def initialize(str)
  @value = str
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value



343
344
345
# File 'lib/erb.rb', line 343

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


346
347
348
# File 'lib/erb.rb', line 346

def empty?
  @value.empty?
end