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.



270
271
272
# File 'lib/erb.rb', line 270

def initialize(str)
  @value = str
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



273
274
275
# File 'lib/erb.rb', line 273

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


276
277
278
# File 'lib/erb.rb', line 276

def empty?
  @value.empty?
end