Class: Zenlish::Inflect::FormalArgument

Inherits:
Object
  • Object
show all
Defined in:
lib/zenlish/inflect/formal_argument.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(anIndex) ⇒ FormalArgument

Returns a new instance of FormalArgument.



6
7
8
# File 'lib/zenlish/inflect/formal_argument.rb', line 6

def initialize(anIndex)
  @index = anIndex
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



4
5
6
# File 'lib/zenlish/inflect/formal_argument.rb', line 4

def index
  @index
end