Class: FlexMock::MockBuilder::FlexOpts

Inherits:
Struct
  • Object
show all
Defined in:
lib/flexmock/mock_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_classObject

Returns the value of attribute base_class

Returns:

  • (Object)

    the current value of base_class



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def base_class
  @base_class
end

#defsObject

Returns the value of attribute defs

Returns:

  • (Object)

    the current value of defs



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def defs
  @defs
end

#domain_objObject

Returns the value of attribute domain_obj

Returns:

  • (Object)

    the current value of domain_obj



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def domain_obj
  @domain_obj
end

#extendedObject

Returns the value of attribute extended

Returns:

  • (Object)

    the current value of extended



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def extended
  @extended
end

#extended_dataObject

Returns the value of attribute extended_data

Returns:

  • (Object)

    the current value of extended_data



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def extended_data
  @extended_data
end

#mockObject

Returns the value of attribute mock

Returns:

  • (Object)

    the current value of mock



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def mock
  @mock
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def name
  @name
end

#safe_modeObject

Returns the value of attribute safe_mode

Returns:

  • (Object)

    the current value of safe_mode



28
29
30
# File 'lib/flexmock/mock_builder.rb', line 28

def safe_mode
  @safe_mode
end

Instance Method Details

#dataObject



33
34
35
# File 'lib/flexmock/mock_builder.rb', line 33

def data
  self.extended_data ||= {}
end