Class: Goedel::Line
- Inherits:
-
Object
- Object
- Goedel::Line
- Defined in:
- lib/goedel/line.rb
Instance Attribute Summary collapse
-
#instance_name ⇒ Object
readonly
Returns the value of attribute instance_name.
-
#prop ⇒ Object
readonly
Returns the value of attribute prop.
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(instance_name, prop, val) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(instance_name, prop, val) ⇒ Line
Returns a new instance of Line.
8 9 10 11 12 |
# File 'lib/goedel/line.rb', line 8 def initialize(instance_name, prop, val) @instance_name = instance_name @prop = prop @val = val end |
Instance Attribute Details
#instance_name ⇒ Object (readonly)
Returns the value of attribute instance_name.
6 7 8 |
# File 'lib/goedel/line.rb', line 6 def instance_name @instance_name end |
#prop ⇒ Object (readonly)
Returns the value of attribute prop.
6 7 8 |
# File 'lib/goedel/line.rb', line 6 def prop @prop end |
#val ⇒ Object (readonly)
Returns the value of attribute val.
6 7 8 |
# File 'lib/goedel/line.rb', line 6 def val @val end |
Instance Method Details
#generate ⇒ Object
14 15 16 |
# File 'lib/goedel/line.rb', line 14 def generate "#{instance_name}.#{prop} = #{classify(val)}" end |