Class: Select::Entry

Inherits:
Time
  • Object
show all
Defined in:
lib/select.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#do(&e) ⇒ Object (readonly)

Returns the value of attribute do


182
183
184
# File 'lib/select.rb', line 182

def do
  @do
end

Class Method Details

.new(*a, &e) ⇒ Object


191
192
193
194
195
# File 'lib/select.rb', line 191

def self.new *a, &e
  x = self.at *a
  x.do &e
  x
end

Instance Method Details

#call(*p) ⇒ Object


187
188
189
# File 'lib/select.rb', line 187

def call *p
  @do.call *p
end