Class: Ruber::RSpec::ConfigWidget

Inherits:
Qt::Widget
  • Object
show all
Defined in:
plugins/rspec/rspec.rb,
plugins/rspec/rspec.rb

Constant Summary

AUTO_EXPAND =

The symbols associated with the entries in the _rake__auto_expand widget

[:expand_none, :expand_first, :expand_all]

Instance Method Summary (collapse)

API for feature rspec

Constructor Details

- (ConfigWidget) initialize(parent = nil)

A new instance of ConfigWidget

Parameters:

  • parent (Qt::Widget, nil) (defaults to: nil)

    the parent widget



1033
1034
1035
1036
1037
# File 'plugins/rspec/rspec.rb', line 1033

def initialize parent = nil
  super
  @ui = Ui::RSpecConfigWidget.new
  @ui.setup_ui self
end

Instance Method Details

- (Symbol) auto_expand

Store method for the rspec/auto_expand option

Returns:

  • (Symbol)

    the symbol associated with the current entry in the _rake__auto_expand widget



1054
1055
1056
# File 'plugins/rspec/rspec.rb', line 1054

def auto_expand
  AUTO_EXPAND[@ui._rspec__auto_expand.current_index]
end

- (Symbol) auto_expand=(value)

Writer method for the rspec/auto_expand option

Parameters:

  • value (Symbol)

    the value of the option. It may be any value contained in the AUTO_EXPAND constant

Returns:



1045
1046
1047
# File 'plugins/rspec/rspec.rb', line 1045

def auto_expand= value
  @ui._rspec__auto_expand.current_index = AUTO_EXPAND.index value
end