Module: SetAttributes::Controls::Object

Defined in:
lib/set_attributes/controls/object.rb

Defined Under Namespace

Modules: MissingAttribute, New Classes: Example

Class Method Summary collapse

Class Method Details

.exampleObject



4
5
6
7
8
9
10
11
12
# File 'lib/set_attributes/controls/object.rb', line 4

def self.example
  example = Example.new

  example.some_attribute = some_attribute
  example.some_other_attribute = some_other_attribute
  example.yet_another_attribute = yet_another_attribute

  example
end

.some_attributeObject



14
15
16
# File 'lib/set_attributes/controls/object.rb', line 14

def self.some_attribute
  'some value'
end

.some_other_attributeObject



18
19
20
# File 'lib/set_attributes/controls/object.rb', line 18

def self.some_other_attribute
  'some other value'
end

.yet_another_attributeObject



22
23
24
# File 'lib/set_attributes/controls/object.rb', line 22

def self.yet_another_attribute
  'yet another value'
end