Class: Guff::JavaSource::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/guff/java_source.rb

Instance Method Summary collapse

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_sourceObject



243
244
245
# File 'lib/guff/java_source.rb', line 243

def as_source
    "#{guff_type} #{@name}"
end

#guff_typeObject



251
252
253
# File 'lib/guff/java_source.rb', line 251

def guff_type
    @guff_type
end

#nameObject



247
248
249
# File 'lib/guff/java_source.rb', line 247

def name
    @name
end