Method: Map::Arguments#options

Defined in:
lib/map/options.rb

#optionsObject



131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/map/options.rb', line 131

def options
  @options ||=(
    if last.is_a?(Hash)
      options = Options.for(pop)
      options.arguments = self
      push(options)
      options
    else
      options = Options.for({})
      options.arguments = self
      options
    end
  )
end