module BOAST::PrivateStateAccessor
Implements private setters and getters interface for BOAST
states. @private
Private Class Methods
private_boolean_state_accessor(state)
click to toggle source
Generates private setters and getters for the specified boolean state @param [Symbol] state @!macro [attach] private_boolean_state_accessor
@!method $1? @return the boolean evaluation of the *$1* state @private @!parse private_state_accessor $1
# File lib/BOAST/Language/State.rb, line 151 def self.private_boolean_state_accessor(state) self.private_state_accessor(state) s = <<EOF private def #{state}? BOAST::#{state}? end EOF eval s end
private_state_accessor(state)
click to toggle source
Generates private setters and getters for the specified state @param [Symbol] state @!macro [attach] private_state_accessor
@!method $1 @return the BOAST *$1* state @private @!method $1=( val ) Sets *$1* state to a new value @param val the new value of *$1* state @return the new +$1+ state @private @!method get_$1 @return the *$1* state @private @!method set_$1( val ) Sets *$1* state to a new value @param val the new value of *$1* state @return the new *$1* state @private
# File lib/BOAST/Language/State.rb, line 125 def self.private_state_accessor(state) s = <<EOF private def #{state}=(val) BOAST::set_#{state}(val) end def #{state} BOAST::get_#{state} end def set_#{state}(val) BOAST::set_#{state}(val) end def get_#{state} BOAST::get_#{state} end EOF eval s end
Private Instance Methods
annotate_number(name)
click to toggle source
(see BOAST#annotate_number
)
# File lib/BOAST/Language/Algorithm.rb, line 46 def annotate_number(name) BOAST::annotate_number(name) end
decrement_indent_level(increment = get_indent_increment)
click to toggle source
(see BOAST#decrement_indent_level
)
# File lib/BOAST/Language/Algorithm.rb, line 26 def decrement_indent_level(increment = get_indent_increment) BOAST::decrement_indent_level(increment) end
get_architecture_name()
click to toggle source
(see BOAST#get_architecture_name
)
# File lib/BOAST/Language/Algorithm.rb, line 36 def get_architecture_name BOAST::get_architecture_name end
get_lang_name()
click to toggle source
(see BOAST#get_lang_name
)
# File lib/BOAST/Language/Algorithm.rb, line 41 def get_lang_name BOAST::get_lang_name end
increment_indent_level(increment = get_indent_increment)
click to toggle source
(see BOAST#increment_indent_level
)
# File lib/BOAST/Language/Algorithm.rb, line 21 def increment_indent_level(increment = get_indent_increment) BOAST::increment_indent_level(increment) end
indent()
click to toggle source
(see BOAST#indent
)
# File lib/BOAST/Language/Algorithm.rb, line 31 def indent BOAST::indent end
pop_env(*vars)
click to toggle source
(see BOAST#pop_env
)
# File lib/BOAST/Language/Algorithm.rb, line 16 def pop_env(*vars) BOAST::pop_env(*vars) end
push_env(vars, &block)
click to toggle source
(see BOAST#push_env
)
# File lib/BOAST/Language/Algorithm.rb, line 11 def push_env(vars, &block) BOAST::push_env(vars, &block) end
reset_annotate_numbers()
click to toggle source
(see BOAST#reset_annotate_numbers
# File lib/BOAST/Language/Algorithm.rb, line 51 def reset_annotate_numbers BOAST::reset_annotate_numbers end