Class: BOAST::Pragma
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, options) ⇒ Pragma
constructor
A new instance of Pragma.
- #print(final = true) ⇒ Object
- #to_s ⇒ Object
- #to_str ⇒ Object
Constructor Details
#initialize(name, options) ⇒ Pragma
Returns a new instance of Pragma.
169 170 171 172 |
# File 'lib/BOAST/Algorithm.rb', line 169 def initialize(name, ) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
166 167 168 |
# File 'lib/BOAST/Algorithm.rb', line 166 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
167 168 169 |
# File 'lib/BOAST/Algorithm.rb', line 167 def @options end |
Class Method Details
.parens(*args, &block) ⇒ Object
162 163 164 |
# File 'lib/BOAST/Algorithm.rb', line 162 def self.parens(*args,&block) return self::new(*args,&block) end |
Instance Method Details
#print(final = true) ⇒ Object
191 192 193 194 195 196 |
# File 'lib/BOAST/Algorithm.rb', line 191 def print(final = true) s="" s += self.to_str BOAST::get_output.puts s if final return s end |
#to_s ⇒ Object
174 175 176 |
# File 'lib/BOAST/Algorithm.rb', line 174 def to_s self.to_str end |