Class: ERB::Compiler::PercentLine

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ PercentLine

Returns a new instance of PercentLine.



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

def initialize(str)
  @value = str
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


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

def empty?
  @value.empty?
end