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

- (PercentLine) initialize(str)

A new instance of PercentLine



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

def initialize(str)
  @value = str
end

Instance Attribute Details

- (Object) value (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

- (Boolean) empty?

Returns:

  • (Boolean)


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

def empty?
  @value.empty?
end