class Quby::Compiler::Entities::ScoreCalculation
Attributes
calculation[RW]
key[RW]
label[RW]
options[RW]
sbg_key[RW]
Public Class Methods
new(key, options, &block)
click to toggle source
# File lib/quby/compiler/entities/score_calculation.rb, line 9 def initialize(key, options, &block) @key = key @label = options[:label] @sbg_key = options[:sbg_key] @options = options @calculation = block end
Public Instance Methods
action()
click to toggle source
# File lib/quby/compiler/entities/score_calculation.rb, line 25 def action @options[:action] end
completion()
click to toggle source
# File lib/quby/compiler/entities/score_calculation.rb, line 21 def completion @options[:completion] end
score()
click to toggle source
# File lib/quby/compiler/entities/score_calculation.rb, line 17 def score @options[:score] end
sourcecode()
click to toggle source
# File lib/quby/compiler/entities/score_calculation.rb, line 29 def sourcecode options[:ruby_string] || calculation&.to_proc&.source end