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

Returns a new instance of PercentLine.



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

def initialize(str)
  @value = str
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value



348
349
350
# File 'lib/erb.rb', line 348

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


351
352
353
# File 'lib/erb.rb', line 351

def empty?
  @value.empty?
end