Class: Guff::JavaSource::Parameter
- Inherits:
-
Object
- Object
- Guff::JavaSource::Parameter
- Defined in:
- lib/guff/java_source.rb
Instance Method Summary collapse
- #as_source ⇒ Object
- #guff_type ⇒ Object
-
#initialize(n, t) ⇒ Parameter
constructor
A new instance of Parameter.
- #name ⇒ Object
Constructor Details
#initialize(n, t) ⇒ Parameter
Returns a new instance of Parameter.
238 239 240 241 |
# File 'lib/guff/java_source.rb', line 238 def initialize(n, t) @name=n @guff_type=t end |
Instance Method Details
#as_source ⇒ Object
243 244 245 |
# File 'lib/guff/java_source.rb', line 243 def as_source "#{guff_type} #{@name}" end |
#guff_type ⇒ Object
251 252 253 |
# File 'lib/guff/java_source.rb', line 251 def guff_type @guff_type end |
#name ⇒ Object
247 248 249 |
# File 'lib/guff/java_source.rb', line 247 def name @name end |