Class: Guff::JavaSource::Property
- Inherits:
-
UnnamedProperty
- Object
- UnnamedProperty
- Guff::JavaSource::Property
- Defined in:
- lib/guff/java_source.rb
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Property
constructor
A new instance of Property.
- #write_to(writer) ⇒ Object
Methods inherited from UnnamedProperty
Constructor Details
#initialize(name, value) ⇒ Property
Returns a new instance of Property.
199 200 201 202 |
# File 'lib/guff/java_source.rb', line 199 def initialize(name, value) super(value) @name = name end |
Instance Method Details
#write_to(writer) ⇒ Object
204 205 206 207 |
# File 'lib/guff/java_source.rb', line 204 def write_to(writer) writer.append(@name).append("=") write_value(writer) end |