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
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_attribute ⇒ Object
14
15
16
|
# File 'lib/set_attributes/controls/object.rb', line 14
def self.some_attribute
'some value'
end
|
.some_other_attribute ⇒ Object
18
19
20
|
# File 'lib/set_attributes/controls/object.rb', line 18
def self.some_other_attribute
'some other value'
end
|
.yet_another_attribute ⇒ Object
22
23
24
|
# File 'lib/set_attributes/controls/object.rb', line 22
def self.yet_another_attribute
'yet another value'
end
|