class Aspector::DeferredOption

Object used to store deferred options

Attributes

key[R]

Public Class Methods

new(key = nil) click to toggle source
# File lib/aspector/deferred_option.rb, line 6
def initialize(key = nil)
  @key = key
end

Public Instance Methods

[](key) click to toggle source
# File lib/aspector/deferred_option.rb, line 10
def [](key)
  @key = key
  self
end
to_s() click to toggle source
# File lib/aspector/deferred_option.rb, line 15
def to_s
  "options[#{(key || '?').inspect}]"
end