Class: Aspector::DeferredOption

Inherits:
Object
  • Object
show all
Defined in:
lib/aspector/deferred_option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/aspector/deferred_option.rb', line 4

def key
  @key
end

Instance Method Details

#[](key) ⇒ Object



6
7
8
9
# File 'lib/aspector/deferred_option.rb', line 6

def [] key
  @key = key
  self
end

#inspectObject



11
12
13
# File 'lib/aspector/deferred_option.rb', line 11

def inspect
  "options[:#{key}]"
end