Module: Crabstone::Extension::Operand
- Included in:
- ARM64::Operand, ARM::Operand, BPF::Operand, M680X::Operand, M68K::Operand, MIPS::Operand, MOS65XX::Operand, PPC::Operand, RISCV::Operand, SH::Operand, Sparc::Operand, SysZ::Operand, TMS320C64X::Operand, TRICORE::Operand, WASM::Operand, X86::Operand, XCore::Operand
- Defined in:
- lib/crabstone/arch/extension.rb
Overview
For class Operand.
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
16 17 18 |
# File 'lib/crabstone/arch/extension.rb', line 16 def valid? !value.nil? end |
#value ⇒ Object
9 10 11 12 13 14 |
# File 'lib/crabstone/arch/extension.rb', line 9 def value self[:value].class.members.find do |s| sym = "#{s}?".to_sym return self[:value][s] if respond_to?(sym) && __send__(sym) end end |