Class: ERB::Compiler::PercentLine

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ PercentLine

:nodoc:



76
77
78
# File 'lib/missing/erb.rb', line 76

def initialize(str)
  @value = str
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



79
80
81
# File 'lib/missing/erb.rb', line 79

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/missing/erb.rb', line 82

def empty?
  @value.empty?
end