Class: Goedel::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/goedel/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute instance_name.



6
7
8
# File 'lib/goedel/line.rb', line 6

def instance_name
  @instance_name
end

#propObject (readonly)

Returns the value of attribute prop.



6
7
8
# File 'lib/goedel/line.rb', line 6

def prop
  @prop
end

#valObject (readonly)

Returns the value of attribute val.



6
7
8
# File 'lib/goedel/line.rb', line 6

def val
  @val
end

Instance Method Details

#generateObject



14
15
16
# File 'lib/goedel/line.rb', line 14

def generate
  "#{instance_name}.#{prop} = #{classify(val)}"
end