Class: ScryExampleClass
- Inherits:
-
Object
- Object
- ScryExampleClass
- Defined in:
- lib/example_material.rb
Overview
Purely for use by Scryglass.demo_hash
Instance Attribute Summary collapse
-
#instance_variable_1 ⇒ Object
Returns the value of attribute instance_variable_1.
-
#instance_variable_2 ⇒ Object
Returns the value of attribute instance_variable_2.
-
#instance_variable_3 ⇒ Object
Returns the value of attribute instance_variable_3.
-
#instance_variable_4 ⇒ Object
Returns the value of attribute instance_variable_4.
Instance Method Summary collapse
-
#initialize ⇒ ScryExampleClass
constructor
A new instance of ScryExampleClass.
Constructor Details
#initialize ⇒ ScryExampleClass
Returns a new instance of ScryExampleClass.
7 8 9 10 11 12 |
# File 'lib/example_material.rb', line 7 def initialize self.instance_variable_1 = nil self.instance_variable_2 = true self.instance_variable_3 = {:test => true, :not_test => false} self.instance_variable_4 = 'Scrying is fun!' end |
Instance Attribute Details
#instance_variable_1 ⇒ Object
Returns the value of attribute instance_variable_1.
5 6 7 |
# File 'lib/example_material.rb', line 5 def instance_variable_1 @instance_variable_1 end |
#instance_variable_2 ⇒ Object
Returns the value of attribute instance_variable_2.
5 6 7 |
# File 'lib/example_material.rb', line 5 def instance_variable_2 @instance_variable_2 end |
#instance_variable_3 ⇒ Object
Returns the value of attribute instance_variable_3.
5 6 7 |
# File 'lib/example_material.rb', line 5 def instance_variable_3 @instance_variable_3 end |
#instance_variable_4 ⇒ Object
Returns the value of attribute instance_variable_4.
5 6 7 |
# File 'lib/example_material.rb', line 5 def instance_variable_4 @instance_variable_4 end |