In Files

Parent

Methods

Parameter

Attributes

description[RW]
optional[RW]

Public Class Methods

new(n = nil) click to toggle source
# File lib/rest.rb, line 206
def initialize n = nil
  @optional = false
  super
end

Public Instance Methods

to_s() click to toggle source
# File lib/rest.rb, line 211
def to_s
  s = @name.to_s
  s += " (optional)" if @optional
  if ( !@description || @description.empty? )
    s
  else
    s + " - " + @description
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.